/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * articulos_sie_promociones_alta_sie.java
 *
 * Created on 28/11/2013, 10:16:11 AM
 */

package sie_invdis;

import java.sql.*;
import javax.swing.*;

import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.JTable.*;
import java.awt.*;
import java.awt.event.*;
import java.util.Date;
import java.util.Calendar;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import java.text.*;
import javax.swing.JFrame;
import java.io.*;

import org.jfree.data.category.DefaultCategoryDataset;
import org.jfree.ui.RefineryUtilities;
import javax.swing.Timer;
/**
 *
 * @author michelle
 */
public class articulos_sie_promociones_alta_sie extends javax.swing.JFrame {

    private javax.swing.table.DefaultTableModel jtable_modelo_tiendas;
    private javax.swing.table.DefaultTableModel jtable_modelo_tiendasdd;
    private javax.swing.table.DefaultTableModel jtable_modelo_tiendaskit;
    private javax.swing.table.DefaultTableModel jtable_modelo;
    private javax.swing.table.DefaultTableModel jtable_modelo_pro;
    private DefaultListModel modelo;
    private javax.swing.table.DefaultTableModel jtable_modelop;
    private javax.swing.table.DefaultTableModel jtable_modelo_tiendasreb;
    private javax.swing.table.DefaultTableModel jtable_modelo_existencias;
    private javax.swing.table.DefaultTableModel jtable_modelo_rebfiltro;
    private javax.swing.table.DefaultTableModel jtable_modelo_tiendaprecios;

    private bd_conexion x = new bd_conexion() ;
    private ResultSet rs = null;
    private int elementosmodelo=0,buscamp=1,opbuscamp=1,indexactual=0,mueveindex=0,ci=0,tipfil=1,idtip=0;
     private java.util.Date fechahoy=new Date();
     private SimpleDateFormat formateadoresta = new SimpleDateFormat("yyyy-MM-dd");
    private SimpleDateFormat formateadoeuro = new SimpleDateFormat("dd-MM-yyyy");
    /** Creates new form articulos_sie_promociones_alta_sie */
    public articulos_sie_promociones_alta_sie() {
        this.iniciar_modelo_tiendaspromo();
        this.iniciar_modelo_modelo();
        this.iniciar_modelo_de_tabla();
        this.iniciar_modelo_artpro();
        this.iniciar_modelo_de_tablapromo();
        this.iniciar_modelo_tiendaspromoreb();
        this.iniciar_modelo_artiexistencias();
        this.iniciar_modelo_rebfiltro();
        this.iniciar_modelo_tiendasprecios();
        this.iniciar_modelo_tiendaspromodd();
         this.iniciar_modelo_tiendaspromokit();
        initComponents();
        Calendar fechaini = Calendar.getInstance(); // obtiene la fecha actual
        
        this.jdc_rangoini.setDate(fechaini.getTime());
        this.jdc_rangoini1.setDate(fechaini.getTime());
        this.jdc_rangofinal.setDate(fechaini.getTime());

        this.jdc_rangoini3.setDate(fechaini.getTime());
        this.jdc_rangofinal2.setDate(fechaini.getTime());


        this.jdc_rangoini2.setDate(fechaini.getTime());
        this.jdc_rangofinal1.setDate(fechaini.getTime());

        this.buttonGroup1.setSelected(jrb_obexacto.getModel(), true);
        this.buttonGroup2.setSelected(jrb_bclave.getModel(), true);
        this.buttonGroup3.setSelected(jrbt_rebfilfam.getModel(), true);

        this.buttonGroup4.setSelected(jrb_obcomienza1.getModel(), true);
        this.buttonGroup5.setSelected(jrb_bclave3.getModel(), true);


    jtb_catalogo_articulos.getColumnModel().getColumn(0).setPreferredWidth(30);//tem ent
    jtb_catalogo_articulos.getColumnModel().getColumn(1).setPreferredWidth(30);//Familia
    jtb_catalogo_articulos.getColumnModel().getColumn(2).setPreferredWidth(5);//Subfamilia
    jtb_catalogo_articulos.getColumnModel().getColumn(3).setPreferredWidth(90);//Clave
    jtb_catalogo_articulos.getColumnModel().getColumn(4).setPreferredWidth(120);//Descripcion
    jtb_catalogo_articulos.getColumnModel().getColumn(5).setPreferredWidth(10);//item
    jtb_catalogo_articulos.getColumnModel().getColumn(6).setPreferredWidth(55);//Linea
    jtb_catalogo_articulos.getColumnModel().getColumn(7).setPreferredWidth(10);//Precio
    jtb_catalogo_articulos.getColumnModel().getColumn(8).setPreferredWidth(10);//Precio

    jtb_catalogo_artiexis.getColumnModel().getColumn(0).setPreferredWidth(65);//tem ent
    jtb_catalogo_artiexis.getColumnModel().getColumn(1).setPreferredWidth(120);//Familia
    jtb_catalogo_artiexis.getColumnModel().getColumn(2).setPreferredWidth(15);//Subfamilia
    jtb_catalogo_artiexis.getColumnModel().getColumn(3).setPreferredWidth(45);//Clave

    jtb_distribucionalta3.getColumnModel().getColumn(0).setPreferredWidth(45);//tem ent
    jtb_distribucionalta3.getColumnModel().getColumn(1).setPreferredWidth(65);//Familia
    jtb_distribucionalta3.getColumnModel().getColumn(2).setPreferredWidth(120);//Subfamilia
    jtb_distribucionalta3.getColumnModel().getColumn(3).setPreferredWidth(15);//Clave
    jtb_distribucionalta3.getColumnModel().getColumn(4).setPreferredWidth(15);//Clave

    jtb_distribucionalta2.getColumnModel().getColumn(0).setPreferredWidth(10);//tem ent
    jtb_distribucionalta2.getColumnModel().getColumn(1).setPreferredWidth(45);//Familia
    jtb_distribucionalta2.getColumnModel().getColumn(2).setPreferredWidth(15);//Subfamilia

    jtb_catalogo_articulos.getColumnModel().getColumn(0).setPreferredWidth(15);//tem ent
    jtb_catalogo_articulos.getColumnModel().getColumn(1).setPreferredWidth(80);//Familia
    jtb_catalogo_articulos.getColumnModel().getColumn(2).setPreferredWidth(60);//Subfamilia

    jtb_catalogo_articulos3.getColumnModel().getColumn(0).setPreferredWidth(25);//tem ent
    jtb_catalogo_articulos3.getColumnModel().getColumn(1).setPreferredWidth(80);//Familia
    jtb_catalogo_articulos3.getColumnModel().getColumn(2).setPreferredWidth(60);//Subfamilia

    mueveindex=1;

    }
   

    public articulos_sie_promociones_alta_sie(String id,String descripcion) {
        this.iniciar_modelo_tiendaspromo();
        this.iniciar_modelo_modelo();
        this.iniciar_modelo_de_tabla();
        this.iniciar_modelo_artpro();
        this.iniciar_modelo_de_tablapromo();
        this.iniciar_modelo_tiendaspromoreb();
        this.iniciar_modelo_artiexistencias();
        this.iniciar_modelo_rebfiltro();
        this.iniciar_modelo_tiendasprecios();
        this.iniciar_modelo_tiendaspromodd();
        this.iniciar_modelo_tiendaspromokit();
        initComponents();

        Calendar fechaini = Calendar.getInstance(); // obtiene la fecha actual

        this.buttonGroup1.setSelected(jrb_obexacto.getModel(), true);
        this.buttonGroup2.setSelected(jrb_bclave.getModel(), true);

        this.jdc_rangoini.setDate(fechaini.getTime());
        this.jdc_rangofinal.setDate(fechaini.getTime());
        this.jdc_rangofinal.setDate(fechaini.getTime());

        this.jdc_rangoini2.setDate(fechaini.getTime());
        this.jdc_rangofinal1.setDate(fechaini.getTime());

        
        this.carga_datos_promociones(3, id);
        this.cargar_datos_promotiendas(id);
        
        //this.carga_datos_detalle(2, id);
        this.carga_datos_promociones_detalle();
        this.setTitle("S.I. Promociones:"+descripcion);

    jtb_catalogo_articulos.getColumnModel().getColumn(0).setPreferredWidth(10);//tem ent
    jtb_catalogo_articulos.getColumnModel().getColumn(1).setPreferredWidth(10);//Familia
    jtb_catalogo_articulos.getColumnModel().getColumn(2).setPreferredWidth(5);//Subfamilia
    jtb_catalogo_articulos.getColumnModel().getColumn(3).setPreferredWidth(90);//Clave
    jtb_catalogo_articulos.getColumnModel().getColumn(4).setPreferredWidth(120);//Descripcion
    jtb_catalogo_articulos.getColumnModel().getColumn(5).setPreferredWidth(10);//item
    jtb_catalogo_articulos.getColumnModel().getColumn(6).setPreferredWidth(60);//Linea
    jtb_catalogo_articulos.getColumnModel().getColumn(7).setPreferredWidth(10);//Precio
    jtb_catalogo_articulos.getColumnModel().getColumn(8).setPreferredWidth(10);//Precio

    jtb_catalogo_articulos1.getColumnModel().getColumn(0).setPreferredWidth(60);//tem ent
    jtb_catalogo_articulos1.getColumnModel().getColumn(1).setPreferredWidth(120);//Familia
    jtb_catalogo_articulos1.getColumnModel().getColumn(2).setPreferredWidth(10);//Subfamilia

    jtb_distribucionalta3.getColumnModel().getColumn(0).setPreferredWidth(45);//tem ent
    jtb_distribucionalta3.getColumnModel().getColumn(1).setPreferredWidth(65);//Familia
    jtb_distribucionalta3.getColumnModel().getColumn(2).setPreferredWidth(120);//Subfamilia
    jtb_distribucionalta3.getColumnModel().getColumn(3).setPreferredWidth(15);//Clave
    jtb_distribucionalta3.getColumnModel().getColumn(4).setPreferredWidth(15);//Clave

    jtb_distribucionalta2.getColumnModel().getColumn(0).setPreferredWidth(10);//tem ent
    jtb_distribucionalta2.getColumnModel().getColumn(1).setPreferredWidth(45);//Familia
    jtb_distribucionalta2.getColumnModel().getColumn(2).setPreferredWidth(15);//Subfamilia

    jtb_catalogo_articulos.getColumnModel().getColumn(0).setPreferredWidth(15);//tem ent
    jtb_catalogo_articulos.getColumnModel().getColumn(1).setPreferredWidth(80);//Familia
    jtb_catalogo_articulos.getColumnModel().getColumn(2).setPreferredWidth(60);//Subfamilia

    jtb_catalogo_articulos3.getColumnModel().getColumn(0).setPreferredWidth(25);//tem ent
    jtb_catalogo_articulos3.getColumnModel().getColumn(1).setPreferredWidth(80);//Familia
    jtb_catalogo_articulos3.getColumnModel().getColumn(2).setPreferredWidth(60);//Subfamilia

    mueveindex=1;

    }
private void iniciar_modelo_tiendaspromo()
    {
        jtable_modelo_tiendas=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_tiendas.addColumn("<html><b>Id</b></html>");
        jtable_modelo_tiendas.addColumn("<html><b>Tienda</b></html>");
        jtable_modelo_tiendas.addColumn("<html><b>F.Inicio</b></html>");
        jtable_modelo_tiendas.addColumn("<html><b>F.fin</b></html>");
        jtable_modelo_tiendas.addColumn("<html><b>% Prom.</b></html>");
        jtable_modelo_tiendas.addColumn("<html><b>Id Cat</b></html>");
        jtable_modelo_tiendas.addColumn("<html><b>IdCatdet</b></html>");
  }
private void iniciar_modelo_tiendaspromodd()
    {
        jtable_modelo_tiendasdd=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_tiendasdd.addColumn("<html><b>Id</b></html>");
        jtable_modelo_tiendasdd.addColumn("<html><b>Tienda</b></html>");
        jtable_modelo_tiendasdd.addColumn("<html><b>F.Inicio</b></html>");
        jtable_modelo_tiendasdd.addColumn("<html><b>F.fin</b></html>");
        jtable_modelo_tiendasdd.addColumn("<html><b>% Prom.</b></html>");
        jtable_modelo_tiendasdd.addColumn("<html><b>Id Cat</b></html>");
        jtable_modelo_tiendasdd.addColumn("<html><b>IdCatdet</b></html>");
  }
private void iniciar_modelo_tiendaspromokit()
    {
        jtable_modelo_tiendaskit=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_tiendaskit.addColumn("<html><b>Id</b></html>");
        jtable_modelo_tiendaskit.addColumn("<html><b>Tienda</b></html>");
        jtable_modelo_tiendaskit.addColumn("<html><b>F.Inicio</b></html>");
        jtable_modelo_tiendaskit.addColumn("<html><b>F.fin</b></html>");
        jtable_modelo_tiendaskit.addColumn("<html><b>% Prom.</b></html>");
        jtable_modelo_tiendaskit.addColumn("<html><b>Id Cat</b></html>");
        jtable_modelo_tiendaskit.addColumn("<html><b>IdCatdet</b></html>");
  }
private void iniciar_modelo_de_tabla()
    {
        jtable_modelo=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo.addColumn("<html><b>Familia</b></html>");
        jtable_modelo.addColumn("<html><b>Sub_fam.</b></html>");
        jtable_modelo.addColumn("<html><b>Id</b></html>");
        jtable_modelo.addColumn("<html><b>Clave</b></html>");
        jtable_modelo.addColumn("<html><b>Descripcion.</b></html>");
        jtable_modelo.addColumn("<html><b>Precio</b></html>");
        jtable_modelo.addColumn("<html><b>Fecha Ult. C</b></html>");
        jtable_modelo.addColumn("<html><b>Exis.</b></html>");
        jtable_modelo.addColumn("<html><b>%Rot</b></html>");
    }

private void iniciar_modelo_artpro()
    {
        jtable_modelo_pro=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_pro.addColumn("<html><b>Clave</b></html>");
        jtable_modelo_pro.addColumn("<html><b>Descripcion.</b></html>");
        jtable_modelo_pro.addColumn("<html><b>Precio</b></html>");

    }
private void iniciar_modelo_de_tablapromo()
{
        jtable_modelop=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelop.addColumn("<html><b>Tienda</b></html>");
        jtable_modelop.addColumn("<html><b>Promocion</b></html>");
        jtable_modelop.addColumn("<html><b>Fecha</b></html>");
        jtable_modelop.addColumn("<html><b>%desc</b></html>");


}
private void iniciar_modelo_tiendasprecios()
{
        jtable_modelo_tiendaprecios=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_tiendaprecios.addColumn("<html><b>Tienda</b></html>");
        jtable_modelo_tiendaprecios.addColumn("<html><b>clave</b></html>");
        jtable_modelo_tiendaprecios.addColumn("<html><b>Descripcion</b></html>");
        jtable_modelo_tiendaprecios.addColumn("<html><b>Precio</b></html>");
        jtable_modelo_tiendaprecios.addColumn("<html><b>Exis</b></html>");

}


private void iniciar_modelo_rebfiltro()
{
        jtable_modelo_rebfiltro=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_rebfiltro.addColumn("<html><b>Id</b></html>");
        jtable_modelo_rebfiltro.addColumn("<html><b>Descripcion</b></html>");
        jtable_modelo_rebfiltro.addColumn("<html><b>Art.</b></html>");
}
private void iniciar_modelo_modelo()
    {
        modelo = new javax.swing.DefaultListModel();
        String texto="select * from x1distribucion_tiendas_activas(2,'','') as (tie_descri character varying(35),tie_id integer,tie_desesque character varying(25),idclie character varying(12));";
        System.out.println(texto);
        try
            {
               rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
               while (rs.next())
                    {
                          modelo.addElement(rs.getString("tie_id")+":"+rs.getString("tie_descri"));
                          elementosmodelo+=1;
                    }
            }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }

    }
private void iniciar_modelo_artiexistencias()
    {
        jtable_modelo_existencias=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_existencias.addColumn("Clave");
        jtable_modelo_existencias.addColumn("Descripcion.");
        jtable_modelo_existencias.addColumn("Precio");
        jtable_modelo_existencias.addColumn("Fecha");
        try
            {
               rs = x.sieuno_executediversosv2("select * from x1distribucion_tiendas_activas(2,'','') as (tie_descri character varying(35),tie_id integer,tie_desesque character varying(25),idclie character varying(12));",variables_global.getconexiongral());
               while (rs.next())
                    {
                      jtable_modelo_existencias.addColumn("<html><b>"+rs.getString("tie_id")+":"+rs.getString("tie_descri")+"</b></html>");
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
    }
private void iniciar_modelo_tiendaspromoreb()
    {
        jtable_modelo_tiendasreb=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_tiendasreb.addColumn("<html><b>Id</b></html>");
        jtable_modelo_tiendasreb.addColumn("<html><b>Tienda</b></html>");

  }
private void cargar_datos_promotiendas(String id)
    {
    if(Integer.valueOf(this.jtf_tipodocto.getText().toString())==1)
        {
            while(jtable_modelo_tiendas.getRowCount()>0)jtable_modelo_tiendas.removeRow(0);
            Object[] fnewRow = new Object[8];
            String texto="select * from x1sieuno_articulo_promociones_catalogov2(7,'"+id+"') as (id integer,iddoc integer,idesquema integer,idpromcat integer,idpromodet integer,descripti character varying(35),ordv smallint);";
            System.out.println(texto);
            try
                {
                   rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                   while (rs.next())
                        {
                        fnewRow[0]=rs.getString("idesquema");
                        fnewRow[1]=rs.getString("descripti");
                        fnewRow[2]="";
                        fnewRow[3]="";
                        fnewRow[4]="0";
                        fnewRow[5]=rs.getString("idpromcat");
                        fnewRow[6]=rs.getString("idpromodet");
                        jtable_modelo_tiendas.addRow(fnewRow);
                        }
                }
                catch(Exception e)
                {
                    System.out.println(e.getMessage());
                }
        }
    if(Integer.valueOf(this.jtf_tipodocto.getText().toString())==3)
            {
            while(jtable_modelo_tiendasdd.getRowCount()>0)jtable_modelo_tiendasdd.removeRow(0);
            Object[] fnewRow = new Object[8];
            String texto="select * from x1sieuno_articulo_promociones_catalogov2(7,'"+id+"') as (id integer,iddoc integer,idesquema integer,idpromcat integer,idpromodet integer,descripti character varying(35),ordv smallint);";
            System.out.println(texto);
            try
                {
                   rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                   while (rs.next())
                        {
                            fnewRow[0]=rs.getString("idesquema");
                            fnewRow[1]=rs.getString("descripti");
                            fnewRow[2]="";
                            fnewRow[3]="";
                            fnewRow[4]="0";
                            fnewRow[5]=rs.getString("idpromcat");
                            fnewRow[6]=rs.getString("idpromodet");
                            jtable_modelo_tiendasdd.addRow(fnewRow);
                        }
                }
                catch(Exception e)
                    {
                    System.out.println(e.getMessage());
                    }
                }

    if(Integer.valueOf(this.jtf_tipodocto.getText().toString())==4)
            {
            while(jtable_modelo_tiendaskit.getRowCount()>0)jtable_modelo_tiendaskit.removeRow(0);
            Object[] fnewRow = new Object[8];
            String texto="select * from x1sieuno_articulo_promociones_catalogov2(7,'"+id+"') as (id integer,iddoc integer,idesquema integer,idpromcat integer,idpromodet integer,descripti character varying(35),ordv smallint);";
            System.out.println(texto);
            try
                {
                   rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                   while (rs.next())
                        {
                            fnewRow[0]=rs.getString("idesquema");
                            fnewRow[1]=rs.getString("descripti");
                            fnewRow[2]="";
                            fnewRow[3]="";
                            fnewRow[4]="0";
                            fnewRow[5]=rs.getString("idpromcat");
                            fnewRow[6]=rs.getString("idpromodet");
                            jtable_modelo_tiendaskit.addRow(fnewRow);
                        }
                }
                catch(Exception e)
                    {
                    System.out.println(e.getMessage());
                    }
                }

    }
 

private void carga_datos_promociones(int opbus,String tbusca)
{
       String fechacat = "",fechaorigen="",fechaentrega="";
       DecimalFormat miformat = new DecimalFormat("##########.##");
       String cadenasql="select * from x1sieuno_articulo_promociones_catalogov4("+opbus+",'"+tbusca+"','','','') as (id integer,fechaprog date,fechaplica date,fecharevision date,fechainipromo date,fechafinpromo date,descrippromo text,observa text,idstatus smallint,idsuperviso integer,canexispromo numeric,importeexiscosto numeric,importeexisprecio numeric,cantvenacum numeric,importecostoacum numeric,importeprecioacum numeric,describestatus text,supnombre character varying(50),supapaterno character varying(50),supamaterno character varying(50),diaspromo integer,articulos bigint,pzaven numeric,dif numeric,descue numeric,idtip smallint);";
       //invoco al metodo que trae el recordset de datos
       System.out.println("mando traer encabezado:"+cadenasql);
        java.util.Date fechaestaeuropa=null;
        try
         {
            rs = x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
            while (rs.next())
                {
                    this.jtf_iddocto.setText(rs.getString("id"));
                    this.jtf_promocan.setText(miformat.format(rs.getFloat("descue")));
                    this.jtf_promocan1.setText(miformat.format(rs.getFloat("descue")));
                    this.jtf_describe.setText(rs.getString("descrippromo"));
                    this.jtf_describe1.setText(rs.getString("descrippromo"));
                    this.jtf_describe2.setText(rs.getString("descrippromo"));
                    this.jtf_describe3.setText(rs.getString("descrippromo"));
                    this.jtf_observaindica.setText(rs.getString("observa"));
                    this.jtf_observaindica1.setText(rs.getString("observa"));
                    this.jtf_observaindica2.setText(rs.getString("observa"));
                    this.jtf_observaindica3.setText(rs.getString("observa"));
                    if (rs.getString("fechainipromo")!= null)
                        {
                            try
                                {
                                    fechaestaeuropa = formateadoresta.parse(rs.getString("fechainipromo"));
                                    this.jdc_rangoini.setDate(fechaestaeuropa);
                                    this.jdc_rangoini1.setDate(fechaestaeuropa);
                                    this.jdc_rangoini2.setDate(fechaestaeuropa);
                                     this.jdc_rangoini3.setDate(fechaestaeuropa);
                                }
                            catch (ParseException e)
                                {
                                //Error, la cadena de texto no se puede convertir en fecha.
                                }
                        }

                if (rs.getString("fechafinpromo")!= null)
                        {
                            try
                                {
                                    fechaestaeuropa = formateadoresta.parse(rs.getString("fechafinpromo"));
                                    this.jdc_rangofinal.setDate(fechaestaeuropa);
                                    this.jdc_rangofinal1.setDate(fechaestaeuropa);
                                    this.jdc_rangofinal2.setDate(fechaestaeuropa);
                                }
                            catch (ParseException e)
                                {
                                //Error, la cadena de texto no se puede convertir en fecha.
                                }
                        }
                    if(rs.getInt("idtip")==1)
                        {
                            this.jbtn_agregart1.setVisible(false);
                            this.jbtn_guardasolicitud2.setVisible(false);

                        }
                    if(rs.getInt("idtip")==2)
                        {
                            this.jTabbedPane1.setSelectedIndex(3);
                            this.jtf_iddocto1.setText(this.jtf_iddocto.getText());
                            this.jbtn_promociondesindi.setVisible(false);
                            this.jbtn_promocionindielimi.setVisible(false);
                            this.jbtn_agregart.setVisible(false);
                            this.jbtn_guardasolicitud.setVisible(false);
                            
                        }
                    if(rs.getInt("idtip")==3)
                        {
                            this.jTabbedPane1.setSelectedIndex(1);
                            this.jtf_iddocto2.setText(this.jtf_iddocto.getText());
                            this.jbtn_promociondesindi.setVisible(false);
                            this.jbtn_promocionindielimi.setVisible(false);
                            this.jbtn_agregart.setVisible(false);
                            this.jbtn_guardasolicitud.setVisible(false);

                        }
                    if(rs.getInt("idtip")==4)
                        {
                            this.jTabbedPane1.setSelectedIndex(2);
                            this.jtf_iddocto3.setText(this.jtf_iddocto.getText());
                            this.jbtn_promociondesindi.setVisible(false);
                            this.jbtn_promocionindielimi.setVisible(false);
                            this.jbtn_agregart.setVisible(false);
                            this.jbtn_guardasolicitud.setVisible(false);

                        }
                    this.jtf_tipodocto.setText(rs.getString("idtip"));
                    idtip=rs.getInt("idtip");
                }
        }
        catch(Exception e)
        {
                System.out.println(e.getMessage());
        }
if(idtip==1)
    {
            for(int i=0;i<this.jtable_modelo_tiendas.getRowCount();i++)
                                {
                                            
                                    cadenasql="select * from x1sieuno_articulo_promociones_catalogov3(8,'"+this.jtable_modelo_tiendas.getValueAt(i, 0).toString()+"','"+this.jtable_modelo_tiendas.getValueAt(i, 5).toString()+"','"+this.jtable_modelo_tiendas.getValueAt(i, 6).toString()+"','','') as (id integer,iddet integer,descripcion text,porcen real,status integer,fechai date,fechaf date,idem integer)";
                                    System.out.println(cadenasql);
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                jtable_modelo_tiendas.setValueAt(this.fechaeuropea(rs.getString("fechai")),i,2);
                                                jtable_modelo_tiendas.setValueAt(this.fechaeuropea(rs.getString("fechaf")),i,3);
                                                jtable_modelo_tiendas.setValueAt(rs.getString("porcen"),i,4);
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                }
    }
if(idtip==4)
    {
            for(int i=0;i<this.jtable_modelo_tiendaskit.getRowCount();i++)
                                {
                                    cadenasql="select * from x1sieuno_articulo_promociones_catalogov3(8,'"+this.jtable_modelo_tiendaskit.getValueAt(i, 0).toString()+"','"+this.jtable_modelo_tiendaskit.getValueAt(i, 5).toString()+"','"+this.jtable_modelo_tiendaskit.getValueAt(i, 6).toString()+"','','') as (id integer,iddet integer,descripcion text,porcen real,status integer,fechai date,fechaf date,idem integer)";
                                    System.out.println(cadenasql);
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                jtable_modelo_tiendaskit.setValueAt(this.fechaeuropea(rs.getString("fechai")),i,2);
                                                jtable_modelo_tiendaskit.setValueAt(this.fechaeuropea(rs.getString("fechaf")),i,3);
                                                jtable_modelo_tiendaskit.setValueAt(rs.getString("porcen"),i,4);
                                            }
                                        }
                                        catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                }
    }

}

private void carga_datos_promociones_detalle()
{
       String fechacat = "",fechaorigen="",fechaentrega="";
       DecimalFormat miformat = new DecimalFormat("##########");
       String cadenasql="";
       if(Integer.valueOf(this.jtf_tipodocto.getText().toString())==1)
            {
            for(int i=0;i<this.jtable_modelo_tiendas.getRowCount();i++)
                                {
                                    cadenasql="select * from x1sieuno_articulo_promociones_catalogov3(8,'"+this.jtable_modelo_tiendas.getValueAt(i, 0).toString()+"','"+this.jtable_modelo_tiendas.getValueAt(i, 5).toString()+"','"+this.jtable_modelo_tiendas.getValueAt(i, 6).toString()+"','','') as (id integer,iddet integer,descripcion text,porcen real,status integer,fechai date,fechaf date,idem integer)";
                                    System.out.println(cadenasql);
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                jtable_modelo_tiendas.setValueAt(this.fechaeuropea(rs.getString("fechai")),i,2);
                                                jtable_modelo_tiendas.setValueAt(this.fechaeuropea(rs.getString("fechaf")),i,3);
                                                jtable_modelo_tiendas.setValueAt(rs.getString("porcen"),i,4);
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                }
            }
       if(Integer.valueOf(this.jtf_tipodocto.getText().toString())==3)
            {
            for(int i=0;i<this.jtable_modelo_tiendasdd.getRowCount();i++)
                                {
                                    cadenasql="select * from x1sieuno_articulo_promociones_catalogov3(8,'"+this.jtable_modelo_tiendasdd.getValueAt(i, 0).toString()+"','"+this.jtable_modelo_tiendasdd.getValueAt(i, 5).toString()+"','"+this.jtable_modelo_tiendasdd.getValueAt(i, 6).toString()+"','','') as (id integer,iddet integer,descripcion text,porcen real,status integer,fechai date,fechaf date,idem integer)";
                                    System.out.println(cadenasql);
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                jtable_modelo_tiendasdd.setValueAt(this.fechaeuropea(rs.getString("fechai")),i,2);
                                                jtable_modelo_tiendasdd.setValueAt(this.fechaeuropea(rs.getString("fechaf")),i,3);
                                                jtable_modelo_tiendasdd.setValueAt(rs.getString("porcen"),i,4);
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                }
            }
       if(Integer.valueOf(this.jtf_tipodocto.getText().toString())==4)
            {
            for(int i=0;i<this.jtable_modelo_tiendaskit.getRowCount();i++)
                                {
                                    cadenasql="select * from x1sieuno_articulo_promociones_catalogov3(8,'"+this.jtable_modelo_tiendaskit.getValueAt(i, 0).toString()+"','"+this.jtable_modelo_tiendaskit.getValueAt(i, 5).toString()+"','"+this.jtable_modelo_tiendaskit.getValueAt(i, 6).toString()+"','','') as (id integer,iddet integer,descripcion text,porcen real,status integer,fechai date,fechaf date,idem integer)";
                                    System.out.println(cadenasql);
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                jtable_modelo_tiendaskit.setValueAt(this.fechaeuropea(rs.getString("fechai")),i,2);
                                                jtable_modelo_tiendaskit.setValueAt(this.fechaeuropea(rs.getString("fechaf")),i,3);
                                                jtable_modelo_tiendaskit.setValueAt(rs.getString("porcen"),i,4);
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }

                                    cadenasql="select * from x1sieuno_articulo_promociones_catalogov3(11,'"+this.jtable_modelo_tiendaskit.getValueAt(i, 0).toString()+"','"+this.jtable_modelo_tiendaskit.getValueAt(i, 5).toString()+"','"+this.jtable_modelo_tiendaskit.getValueAt(i, 6).toString()+"','','') as (pzpag integer,pztotal integer)";
                                    System.out.println(cadenasql);
                                    try
                                        {
                                            rs=x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                this.jtf_promokitpzpag.setText(miformat.format(rs.getInt("pzpag")));
                                                this.jtf_promokitpzgrat.setText(miformat.format(rs.getInt("pztotal")-rs.getInt("pzpag")));
                                            }
                                        }
                                        catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }

                                }
            }
}


private void executabusqueda(int bus,int opbus,String busqueda)
 {
     float importe=0,importe2=0,acumulado=0,piezas=0,piezas2=0;
      DecimalFormat myForma = new DecimalFormat("############");
      DecimalFormat myForma2 = new DecimalFormat("############.##");
     String texto2="",htmlabre="<html><BODY>",htmlcierra="</BODY></html>",colorabre="",colorcierra="";
     int fila=0,banderafin=0;;
     while(jtable_modelo.getRowCount()>0)jtable_modelo.removeRow(0);
      while(jtable_modelo_existencias.getRowCount()>0)jtable_modelo_existencias.removeRow(0);

        Object[] fnewRow = new Object[9],fnewRowe = new Object[4];
        String texto="select * from x1sieuno_articulo_catalogov3("+bus+","+opbus+",'"+busqueda+"') as (id integer, cla character varying(16),cod character varying(16), des character varying(80), ultimocosto numeric,fa integer,sub integer,it character varying(80),pre numeric, fe date, tei smallint,tev smallint,lineaarti smallint,controalmacen character varying(20),statusarticulo smallint,unidadempaque character varying(8),sublinea smallint,ob character varying(80),nomfa character varying(30), nomsub character varying(50),tementr character varying(25),descriplinea character varying(25),describestatus character varying(25),describesublinea character varying(25),describetemventa character varying(25),idbase character varying(16),descorta character varying(20),exis numeric,acumpzv numeric,acumimport numeric)";
        System.out.println("Catalogo "+texto);
       try
        {
            rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
            while (rs.next())
                {
                  fnewRow[0]=rs.getString("nomfa");
                  fnewRow[1]=rs.getString("nomsub");
                  fnewRow[2]=rs.getString("id");
                  fnewRow[3]=rs.getString("cla");
                  fnewRow[4]=rs.getString("des").replace("/", " ");
                  fnewRow[5]=rs.getString("pre");
                  fnewRow[6]=this.fechaeuropea(rs.getString ("fe"));
                  fnewRow[7]=myForma.format(rs.getFloat("exis"));
                        piezas=rs.getFloat("acumpzv");
                        piezas2=rs.getFloat("exis");
                        acumulado=piezas+piezas2;
                        importe=(piezas/acumulado)*100;
                        colorabre="";
                        colorcierra="";
                        if (importe<=50)
                            {
                                colorabre="<b><font color=#CC0000>";
                                colorcierra="<font></b>";
                            }
                        if ((importe>50) && (importe<=75))
                            {
                                colorabre="<b><font color=#0000FF>";
                                colorcierra="<font></b>";
                            }
                        if (importe>75)
                            {
                                colorabre="<b><font color=#00FF00>";
                                colorcierra="<font></b>";
                            }
                  fnewRow[8]=htmlabre+colorabre+myForma.format(importe)+"%"+colorcierra+htmlcierra;
                  jtable_modelo.addRow(fnewRow);
                  fnewRowe[0]=rs.getString("cla");
                  fnewRowe[1]=rs.getString("id")+":"+rs.getString ("des");
                  fnewRowe[2]=rs.getString("pre")+"";
                  fnewRowe[3]="";
                  jtable_modelo_existencias.addRow(fnewRowe);
                  banderafin=1;
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
        this.jtf_registros.setText(String.valueOf(this.jtable_modelo.getRowCount()));
        this.jtf_registros2.setText(String.valueOf(this.jtable_modelo.getRowCount()));


    if(banderafin==0)
         {
           JOptionPane.showMessageDialog(null,"Clave:"+busqueda+" No Encontrado", "Sistema Integral(Modificar articulo) : Ayuda",1);
         }
 }

private void verexistencias_tienda(String idtienda,String idpro)
        {
   DecimalFormat myForma = new DecimalFormat("############.##");
    int numerofilas = this.jtable_modelo_pro.getRowCount(),ii=0;
     while(jtable_modelo.getRowCount()>0)jtable_modelo.removeRow(0);
     Object[] fnewRow = new Object[9],fnewRowe = new Object[4];
    String selectin="",id[]=null;
        for( ii=0;ii<numerofilas;ii++)
                {
                if (ii>0)
                    {
                        selectin+=".";
                    }
                id=jtable_modelo_pro.getValueAt(ii ,1).toString().split(":");
                selectin+=""+id[0]+"";
                }

    System.out.println(selectin);
            String texto="select * from x1sieuno_articulo_detalle(5,"+idtienda+",'"+idpro+"','"+selectin+"') as (ida integer,descor text,preve double precision,clavepro text,ultcos numeric,nomfam character varying(30),nomsubfam character varying(50),exi double precision)";
            System.out.println(texto);
            String despartido[]=null,mi="",ma="";
            int columnatitulo=0;
            try
                {
               rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                while (rs.next())
                    {
                          despartido=rs.getString("descor").split(":");
                          fnewRow[0]=rs.getString("nomfam");
                          fnewRow[1]=rs.getString("nomsubfam");
                          fnewRow[2]=rs.getString("ida");
                          fnewRow[3]=rs.getString("clavepro");
                          fnewRow[4]=despartido[1].replace("/", " ");
                          fnewRow[5]=rs.getString("preve");
                          fnewRow[6]=myForma.format(rs.getFloat("ultcos"));
                          fnewRow[7]=myForma.format(rs.getFloat("exi"));
                          fnewRow[8]=despartido[2];
                          jtable_modelo.addRow(fnewRow);

                    }
                }
            catch(Exception e)
                {
                    System.out.println(e.getMessage());
                }
        this.jtf_registros.setText(String.valueOf(this.jtable_modelo.getRowCount()));
        }
private void carga_datos_detalle(int bus,String busqueda)
 {
      Object[] fnewRowf = new Object[3];
      DecimalFormat miformat = new DecimalFormat("############.##");
      while(jtable_modelo_pro.getRowCount()>0)jtable_modelo_pro.removeRow(0);
      String texto="select * from x1sieuno_articulo_promociones_detalle("+bus+",'"+busqueda+"') as (idreg integer,iddocto integer,clavearticulo character varying(16),exispiezaspromo numeric,exiscostopromo numeric,exispreciopromo numeric,pzvendacumpromo numeric,costovenacumpromo numeric,preciovenacumpromo numeric,obseva text,idpro integer,cod character varying(16), des character varying(80), ultimocosto numeric,pre numeric)";
        System.out.println("detalle:"+texto);
       try
        {
            rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
            while (rs.next())
                {
                  fnewRowf[0]=rs.getString("clavearticulo");
                  fnewRowf[1]=rs.getString("idpro")+":"+rs.getString("des");
                  fnewRowf[2]=""+miformat.format(rs.getFloat("pre"))+"";
                  jtable_modelo_pro.addRow(fnewRowf);
                  jtable_modelo_existencias.addRow(fnewRowf);
                }
       }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
      this.jtf_registros1.setText(String.valueOf(this.jtable_modelo_pro.getRowCount()));
    //this.registrosobtenidos();
    //this.cambiartamanofilas();
    // this.verexistencias();
 }
private void carga_datos_detalle_rebajas(int bus,String busqueda)
 {
      Object[] fnewRowf = new Object[4];
      DecimalFormat miformat = new DecimalFormat("############.##");
      String texto="select * from x1sieuno_articulo_promociones_detalle("+bus+",'"+busqueda+"') as (idreg integer,idart integer, des character varying(80),pre numeric,clavearticulo character varying(16),fechai date)";
       while(jtable_modelo_existencias.getRowCount()>0)jtable_modelo_existencias.removeRow(0);
        System.out.println("detalle:"+texto);
       try
        {
            rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
            while (rs.next())
                {
                  fnewRowf[0]=rs.getString("clavearticulo");
                  fnewRowf[1]=rs.getString("idart")+":"+rs.getString("des");
                  fnewRowf[2]=""+miformat.format(rs.getFloat("pre"))+"";
                  fnewRowf[3]=""+this.fechaeuropea(rs.getString("fechai"))+"";
                  jtable_modelo_existencias.addRow(fnewRowf);
                }
       }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
}


private void verexistencias()
        {
    if(this.jtable_modelo_existencias.getRowCount()>0)
        {
            int ii=0;
            String selectin="",idv[]=null;
                for( ii=0;ii<this.jtable_modelo_existencias.getRowCount();ii++)
                        {
                        if (ii>0)
                            {
                                selectin+=".";
                            }
                        idv=jtable_modelo_existencias.getValueAt(ii ,1).toString().split(":");
                        selectin+=idv[0];
                        }

                System.out.println(selectin);
                    String texto="select * from x1sieuno_articulo_detalle(3,0,'','"+selectin+"') as (ida integer,min integer,max integer,exi double precision,idp integer,cod text,cndt integer,descor text,preve double precision,pre_re real,clavepro text)";
                    System.out.println(texto);
                    String despartido[]=null,mi="",ma="";
                    int columnatitulo=0;
                    try
                        {
                       rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                        while (rs.next())
                            {
                                    despartido=rs.getString("descor").split(":");
                                    columnatitulo=this.findcolumna_idtienda(despartido[0]);
                                    System.out.println(rs.getString("descor")+" en columna:"+columnatitulo);
                                     if (rs.getString("pre_re")!=null)
                                            {
                                                System.out.println(rs.getString("descor")+" columna:"+columnatitulo);
                                                mi=rs.getString("pre_re")+"";
                                            }
                                    else
                                        {
                                            System.out.println(rs.getString("descor")+"paso");
                                            mi="";
                                        }
                        if ( columnatitulo>0)
                            {
                                this.crea_hoja_agregaexistencias(rs.getString("idp"),mi+"",columnatitulo,mi,ma);
                            }
                        }
                    }
                    catch(Exception e)
                        {
                            System.out.println(e.getMessage());
                        }
            }
    }

private void dioclick(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
     if(this.jtf_describe.getText().length()>0)
    {
        String codigoint="",id[]=this.jlst_clientesdistribucion.getSelectedValue().toString().split(":");
        int encontrado=0;
        for(int ii=0;ii<this.jtable_modelo_tiendas.getRowCount();ii++)
                            {
                                codigoint=jtable_modelo_tiendas.getValueAt(ii, 0).toString();
                                if(id[0].equals(codigoint))
                                    {
                                        encontrado=1;
                                        jtable_modelo_tiendas.setValueAt(this.fechaeuropea(this.jdc_rangoini.getDate()), ii, 2);
                                        jtable_modelo_tiendas.setValueAt(this.fechaeuropea(this.jdc_rangofinal.getDate()), ii, 3);
                                        jtable_modelo_tiendas.setValueAt(this.jtf_promocan.getText(), ii, 4);
                                    }
                            }
        if(encontrado==0)
            {
                this.jtable_modelo_tiendas.addRow(new Object[]{id[0],id[1],this.fechaeuropea(this.jdc_rangoini.getDate()),this.fechaeuropea(this.jdc_rangofinal.getDate()),this.jtf_promocan.getText(),"0","0"});
            }
        else
            {
                JOptionPane.showMessageDialog(null,"<html><h2><b>Tienda "+id[1]+" Ya Existe!</b></h2></html>", "Sistema Integral(Alta Promocion) : Error",1);
            }
 }
    else
            {
                JOptionPane.showMessageDialog(null,"<html><h2><b>Por Favor Ingrese los datos de la Promocion!!</b></h2></html>", "Sistema Integral(Alta Promocion) : Error",1);
                this.jtf_promocan.selectAll();
                this.jtf_promocan.requestFocus();
            }
    }
private void dioclickdd(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    if(this.jtf_describe2.getText().length()>0)
    {
        String codigoint="",id[]=this.jlst_clientesdistribucion1.getSelectedValue().toString().split(":");
        int encontrado=0;
        for(int ii=0;ii<this.jtable_modelo_tiendasdd.getRowCount();ii++)
                            {
                                codigoint=jtable_modelo_tiendasdd.getValueAt(ii, 0).toString();
                                if(id[0].equals(codigoint))
                                    {
                                        encontrado=1;
                                        jtable_modelo_tiendasdd.setValueAt(this.fechaeuropea(this.jdc_rangoini2.getDate()), ii, 2);
                                        jtable_modelo_tiendasdd.setValueAt(this.fechaeuropea(this.jdc_rangofinal1.getDate()), ii, 3);
                                        jtable_modelo_tiendasdd.setValueAt(this.jtf_promocan1.getText(), ii, 4);
                                    }
                            }
        if(encontrado==0)
            {
                this.jtable_modelo_tiendasdd.addRow(new Object[]{id[0],id[1],this.fechaeuropea(this.jdc_rangoini2.getDate()),this.fechaeuropea(this.jdc_rangofinal1.getDate()),this.jtf_promocan1.getText(),"0","0"});
            }
        else
            {
                JOptionPane.showMessageDialog(null,"<html><h2><b>Tienda "+id[1]+" Ya Existe!</b></h2></html>", "Sistema Integral(Alta Promocion) : Error",1);
            }
    }
    else
            {
                JOptionPane.showMessageDialog(null,"<html><h2><b>Por Favor Ingrese los datos de la Promocion!!</b></h2></html>", "Sistema Integral(Alta Promocion) : Error",1);
                this.jtf_promocan1.selectAll();
                this.jtf_promocan1.requestFocus();
            }
    }
private void dioclickkit(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    if(this.jtf_describe3.getText().length()>0)
    {
        String codigoint="",id[]=this.jlst_clientesdistribucion2.getSelectedValue().toString().split(":");
        int encontrado=0;
        for(int ii=0;ii<this.jtable_modelo_tiendaskit.getRowCount();ii++)
                            {
                                codigoint=jtable_modelo_tiendaskit.getValueAt(ii, 0).toString();
                                if(id[0].equals(codigoint))
                                    {
                                        encontrado=1;
                                        jtable_modelo_tiendaskit.setValueAt(this.fechaeuropea(this.jdc_rangoini3.getDate()), ii, 2);
                                        jtable_modelo_tiendaskit.setValueAt(this.fechaeuropea(this.jdc_rangofinal2.getDate()), ii, 3);
                                        jtable_modelo_tiendaskit.setValueAt(this.jtf_promocan2.getText(), ii, 4);
                                    }
                            }
        if(encontrado==0)
            {
                this.jtable_modelo_tiendaskit.addRow(new Object[]{id[0],id[1],this.fechaeuropea(this.jdc_rangoini3.getDate()),this.fechaeuropea(this.jdc_rangofinal2.getDate()),this.jtf_promocan2.getText(),"0","0"});
            }
        else
            {
                JOptionPane.showMessageDialog(null,"<html><h2><b>Tienda "+id[1]+" Ya Existe!</b></h2></html>", "Sistema Integral(Alta Promocion) : Error",1);
            }
    }
    else
            {
                JOptionPane.showMessageDialog(null,"<html><h2><b>Por Favor Ingrese los datos de la Promocion!!</b></h2></html>", "Sistema Integral(Alta Promocion) : Error",1);
                this.jtf_promocan2.selectAll();
                this.jtf_promocan2.requestFocus();
            }
    }
private void dioclickverexixti(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:


        int fila = jtb_distribucionalta.getSelectedRow();
        if(JOptionPane.showConfirmDialog(null, "Desea ver Existnecia en Tienda?")==0)
        {
            this.verexistencias_tienda(jtable_modelo_tiendas.getValueAt(fila, 0).toString(),jtable_modelo_tiendas.getValueAt(fila, 5).toString());
            this.jtf_idtienda.setText(jtable_modelo_tiendas.getValueAt(fila, 0).toString());
            this.jtf_idtiendapro.setText(jtable_modelo_tiendas.getValueAt(fila, 5).toString());
        }
        this.jtf_idtienda.setText(jtable_modelo_tiendas.getValueAt(fila, 0).toString());
        this.jtf_idtiendapro.setText(jtable_modelo_tiendas.getValueAt(fila, 5).toString());
    }
private void dioclickverexixtikit(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
        int fila = jtb_distribucionalta4.getSelectedRow();
        if(JOptionPane.showConfirmDialog(null, "Desea ver Existnecia en Tienda?")==0)
        {
            this.verexistencias_tienda(jtable_modelo_tiendaskit.getValueAt(fila, 0).toString(),jtable_modelo_tiendaskit.getValueAt(fila, 5).toString());
            this.jtf_idtienda1.setText(jtable_modelo_tiendaskit.getValueAt(fila, 0).toString());
            this.jtf_idtiendapro1.setText(jtable_modelo_tiendaskit.getValueAt(fila, 5).toString());
        }
        this.jtf_idtienda1.setText(jtable_modelo_tiendaskit.getValueAt(fila, 0).toString());
        this.jtf_idtiendapro1.setText(jtable_modelo_tiendaskit.getValueAt(fila, 5).toString());
    }
private String  fechaeuropea(Date fecha) {
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("dd-MM-yyyy");
       String cadenafecha="";
       cadenafecha= formateadorestaeuropa.format(fecha);
       return cadenafecha;
    }
private String  fechaeuropea(String fecha) {

         //resibe cadena de fecha en formato americano yyyy-MM-dd
        java.util.Date fechaestaeuropa=null;
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("dd-MM-yyyy");
       String cadenafecha="";
        try
         {
          fechaestaeuropa = formateadoresta.parse(fecha);
         }
        catch (ParseException e)
          {
             //Error, la cadena de texto no se puede convertir en fecha.
          }
       cadenafecha= formateadorestaeuropa.format(fechaestaeuropa);
       return cadenafecha;

    }
private String fechaamericana(Date fe)
    {
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("yyyy-MM-dd");
       String cadenafecha="";
       cadenafecha= formateadorestaeuropa.format(fe);
       return cadenafecha;
    }
private String  fechaamericana(String fecha) {

         //resibe cadena de fecha en formato americano yyyy-MM-dd
        java.util.Date fechaestaeuropa=null;
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("yyyy-MM-dd");
       String cadenafecha="";
        try
         {
          fechaestaeuropa = formateadoeuro.parse(fecha);
         }
        catch (ParseException e)
          {
             //Error, la cadena de texto no se puede convertir en fecha.
          }
       cadenafecha= formateadorestaeuropa.format(fechaestaeuropa);
       return cadenafecha;

    }
 private void jlst_clientesdistribucionMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }

 private void dioclickpromo(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
         int fila = jtb_catalogo_articulos1.getSelectedRow();
         String valor = jtable_modelo_pro.getValueAt(fila, 0).toString();
         this.jtf_idproductopromo.setText(valor);
         this.idfila.setText(String.valueOf(fila));
         String id[]=jtable_modelo_pro.getValueAt(fila, 1).toString().split(":");
         this.carga_datos_articulotodaslastiendas(id[0]);
    }
  private void dioclickpromokit(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
         int fila = jtb_catalogo_articulos5.getSelectedRow();
         String valor = jtable_modelo_pro.getValueAt(fila, 0).toString();
         this.jtf_idproductopromo1.setText(valor);
         this.idfila1.setText(String.valueOf(fila));
         String id[]=jtable_modelo_pro.getValueAt(fila, 1).toString().split(":");
         this.carga_datos_articulotodaslastiendaskit(id[0]);
    }
private void dioclickreb(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
         String columtitulo[]=null,valor="";
         int fila = jtb_catalogo_artiexis.getSelectedRow();
         int colu=jtb_catalogo_artiexis.getSelectedColumn();
         if(colu>3)
            {
              columtitulo= jtb_catalogo_artiexis.getColumnName(colu).replace("<html><b>","").replace("</b></html>","").split(":");
               if(JOptionPane.showConfirmDialog(null, "<html><b><h2>Desea Establecer Rebaja?<br>Tienda:"+columtitulo[1]+"<br>Articulo:"+jtable_modelo_existencias.getValueAt(fila, 0).toString()+"<br>Descripcion:"+jtable_modelo_existencias.getValueAt(fila, 1).toString()+"<br>Precio Regular:"+jtable_modelo_existencias.getValueAt(fila, 2).toString()+"</h2></b></html>")==0)
                    {
                        valor = jtable_modelo_existencias.getValueAt(fila, 0).toString();
                        
                        this.jtf_rebajacodigo.setText(valor);
                       
                        this.jtf_rebajadescrip.setText(jtable_modelo_existencias.getValueAt(fila, 1).toString());
                        this.jtf_busqueda2.setText(jtable_modelo_existencias.getValueAt(fila, 2).toString());
                        this.jtf_rebaprecio.setText(jtable_modelo_existencias.getValueAt(fila, 2).toString());
                        this.jtf_busqueda2.selectAll();
                        this.jtf_rebidtiendaactual.setText(columtitulo[0]);
                        this.jtf_rebajaidt.setText(columtitulo[0]);
                       
                        this.jtf_rebajaidt1.setText(columtitulo[1]);
                        this.jtf_busqueda2.requestFocus();

                        this.jtf_rebidfila.setText(String.valueOf(fila));
                        this.jtf_rebidfila1.setText(String.valueOf(colu));
                        this.carga_datos_tiendasprecios(valor);
                    }
            }
         else
            {
                JOptionPane.showMessageDialog(null,"Porfavor elija una Columna que Indique tieda", "Sistema Integral(Rebajas)",1);
            }
    }
 private void dioclickpromoreba(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
         int fila = jtb_distribucionalta2.getSelectedRow();
            String valor = jtable_modelo_rebfiltro.getValueAt(fila, 0).toString();
 if(JOptionPane.showConfirmDialog(null, "<html><b><h2>Desea Filtrar por ?<br>"+jtable_modelo_rebfiltro.getValueAt(fila, 1).toString()+"</h2></b></html>")==0)
        {
            if(tipfil==1)
                {
                    this.carga_datos_detalle_rebajas(3, valor);
                }
            if(tipfil==2)
                {
                    this.carga_datos_detalle_rebajas(4, valor);
                }
            this.verexistencias();
        }
    }

 private void exportar_archivo()
    {
        FileWriter fichero = null;
        PrintWriter pw = null;
         float importe=0,importe2=0,acumulado=0,piezas=0,piezas2=0;
        DecimalFormat myForma = new DecimalFormat("############.##");
        Object jtunidad=JOptionPane.showInputDialog(null,"Ingresa Unidad:","Unidades",JOptionPane.QUESTION_MESSAGE,null,new Object[] { "C", "D", "E","F","G","H" },"C");
        String texto="select * from x1sieuno_articulo_catalogov3(15,1,'') as (id integer, cla character varying(16),cod character varying(16), des character varying(80), ultimocosto numeric,fa integer,sub integer,it character varying(80),pre numeric, fe date, tei smallint,tev smallint,lineaarti smallint,controalmacen character varying(20),statusarticulo smallint,unidadempaque character varying(8),sublinea smallint,ob character varying(80),nomfa character varying(30), nomsub character varying(50),tementr character varying(25),descriplinea character varying(25),describestatus character varying(25),describesublinea character varying(25),describetemventa character varying(25),idbase character varying(16),descorta character varying(20),exis numeric,acumpzv numeric,acumimport numeric)",anterior="";
        try
        {
            fichero = new FileWriter(jtunidad.toString()+":/CatalogoArticulos.csv");
            pw = new PrintWriter(fichero);
            pw.println("id,Clave,codbarra,Descripcion,Item,Costo,Precio,F.Ult.Compra,idfam,Familia,Idsub,Subfamilia,AcumVent,Existencia,Rotacion");
            try
                {
                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                    while (rs.next())
                        {
                                piezas=rs.getFloat("acumpzv");
                                piezas2=rs.getFloat("exis");
                                acumulado=piezas+piezas2;
                                importe=(piezas/acumulado)*100;
                            if (!anterior.equals(rs.getString("cla")))
                                    {
                                    pw.println(rs.getString("id")+","+rs.getString("cla")+","+rs.getString("cod")+","+rs.getString("des")+","+rs.getString("it")+","+myForma.format(rs.getFloat("ultimocosto"))+","+myForma.format(rs.getFloat("pre"))+","+this.fechaeuropea(rs.getString ("fe"))+","+rs.getString("fa")+","+rs.getString("nomfa")+","+rs.getString("sub")+","+rs.getString("nomsub")+","+rs.getString("acumpzv")+","+rs.getString("exis")+","+myForma.format(importe)+"%");
                                    }
                            anterior=rs.getString("cla").replace(" ", "");
                        }
                }
                catch(Exception e)
                    {
                        System.out.println(e.getMessage());
                    }

        } catch (Exception e) {
            e.printStackTrace();
        } finally {
           try {
           // Nuevamente aprovechamos el finally para
           // asegurarnos que se cierra el fichero.
           if (null != fichero)
              fichero.close();
                JOptionPane.showMessageDialog(null,"Archivo correcto "+jtunidad.toString()+":/CatalogoArticulos.csv", "Sistema Integral(Catalogo de Articulos)",1);
           } catch (Exception e2) {
              e2.printStackTrace();
           }
        }
    }

 private void carga_datos_articulotodaslastiendas( String id)
        {
            String texto="select * from x1sieuno_articulo_detalle_promo_indviduales(2,0,'"+id+"','','','') as (iddes integer,idalmpro integer,idcatdes integer,iddetdes integer,descrip text,idpro integer,descor text,precio double precision,clavepro text,ultimo numeric,famart integer,subfam integer,por real,fe date,fef date)";
            System.out.println(texto);
            String despartido[]=null;
            Object[] fnewRow = new Object[4];
            DecimalFormat myForma = new DecimalFormat("###,###,###,###");
            while(jtable_modelop.getRowCount()>0)jtable_modelop.removeRow(0);
            try
               {
               rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
               while (rs.next())
                    {
                            despartido=rs.getString("descor").split(":");
                            fnewRow[0]=despartido[0]+":"+despartido[2];
                            fnewRow[1]=rs.getString("descrip");
                            fnewRow[2]=this.fechaeuropea(rs.getString("fe")).substring(0, 2)+ " A "+this.fechaeuropea(rs.getString("fef"));
                            fnewRow[3]=rs.getString("por")+"%";
                            jtable_modelop.addRow(fnewRow);

                    }
                }
            catch(Exception e)
                {
                    System.out.println(e.getMessage());
                }


}

 private void carga_datos_articulotodaslastiendaskit( String id)
        {
            String texto="select * from x1sieuno_articulo_detalle_promo_indviduales(4,0,'"+id+"','','','') as (iddes integer,idalmpro integer,idcatdes integer,iddetdes integer,idpro integer,descor text,precio double precision,clavepro text,ultimo numeric,famart integer,subfam integer,fe date,fef date,des text)";
            System.out.println(texto);
            String despartido[]=null;
            Object[] fnewRow = new Object[4];
            DecimalFormat myForma = new DecimalFormat("###,###,###,###");
            while(jtable_modelop.getRowCount()>0)jtable_modelop.removeRow(0);
            try
               {
               rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
               while (rs.next())
                    {
                            despartido=rs.getString("descor").split(":");
                            fnewRow[0]=despartido[0]+":"+despartido[2];
                            fnewRow[1]=rs.getString("des");
                            fnewRow[2]=this.fechaeuropea(rs.getString("fe")).substring(0, 2)+ " A "+this.fechaeuropea(rs.getString("fef"));
                            fnewRow[3]="";
                            jtable_modelop.addRow(fnewRow);

                    }
                }
            catch(Exception e)
                {
                    System.out.println(e.getMessage());
                }


}

private void carga_datos_tiendasprecios(String clave)
        {
            String texto="select * from x1sieuno_articulo_detalle_ventasacumv2(6,0,'','"+clave+"','') as (ida integer,min integer,max integer,exi double precision,idp integer,cod text,cndt integer,descor text,preve double precision,pre_re real,clavepro text,item text,precioma real,ultimo_costo numeric)";
            System.out.println(texto);
            String despartido[]=null;
            Object[] fnewRow = new Object[5];
            while(jtable_modelo_tiendaprecios.getRowCount()>0)jtable_modelo_tiendaprecios.removeRow(0);
            DecimalFormat myForma = new DecimalFormat("###,###,###,###");
            try
               {
               rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
               while (rs.next())
                    {
                            despartido=rs.getString("descor").split(":");
                            fnewRow[0]=despartido[0]+":"+despartido[2];
                            fnewRow[1]=rs.getString("clavepro");
                            fnewRow[2]=despartido[1];
                            fnewRow[3]=myForma.format(rs.getFloat("preve"));
                            fnewRow[4]=myForma.format(rs.getFloat("exi"));
                            jtable_modelo_tiendaprecios.addRow(fnewRow);

                    }
                }
            catch(Exception e)
                {
                    System.out.println(e.getMessage());
                }
        }

 private void carga_datos_articulo_rebfiltro(int opcion)
        {
            String texto="select * from x1sieuno_articulo_promociones_catalogov3("+opcion+",'','','','','') as (id integer,nombre text,art bigint)";
            System.out.println(texto);
            String despartido[]=null;
            Object[] fnewRow = new Object[3];
            DecimalFormat myForma = new DecimalFormat("###,###,###,###");
            while(jtable_modelo_rebfiltro.getRowCount()>0)jtable_modelo_rebfiltro.removeRow(0);
            try
               {
               rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
               while (rs.next())
                    {
                            fnewRow[0]=rs.getString("id");
                            fnewRow[1]=rs.getString("nombre");
                            fnewRow[2]=rs.getString("art");
                            jtable_modelo_rebfiltro.addRow(fnewRow);

                    }
                }
            catch(Exception e)
                {
                    System.out.println(e.getMessage());
                }


}

private void dioclickpromover(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
         int fila = jtb_catalogo_articulos.getSelectedRow();
         String valor = jtable_modelo.getValueAt(fila, 2).toString();
 if(JOptionPane.showConfirmDialog(null, "Desea ver Promociones?")==0)
        {
            this.carga_datos_articulotodaslastiendas(valor);
            this.jtf_idproductopromo.setText(jtable_modelo.getValueAt(fila, 3).toString());

        //setVisible(false);
       }
    }
private void dioclickpromoverkit(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    System.out.println("dio doble  click");
    int fila = jtb_catalogo_articulos2.getSelectedRow();
    String valor = jtable_modelo.getValueAt(fila, 2).toString();
    if(JOptionPane.showConfirmDialog(null, "Desea ver kit?")==0)
        {
            this.carga_datos_articulotodaslastiendaskit(valor);
            this.jtf_idproductopromo1.setText(jtable_modelo.getValueAt(fila, 3).toString());

        //setVisible(false);
       }
    }
private void crea_hoja_agregaexistencias(String codigo,String existencia,int columna,String smin,String smax)
    {
        DecimalFormat miformat = new DecimalFormat("###,###,###");
        int numerofilas=this.jtable_modelo_existencias.getRowCount(),numerocolumnas=this.jtable_modelo_existencias.getColumnCount(),ii=00,encontrado=0;
        String mesactual[]=null,colorabre="",colorcierra="";
        Object[] fnewRowe = new Object[3];
        float abononumerico=0,importe=0;
       //invoco al metodo que trae el recordset de datos
        //abononumerico=Float.valueOf(existencia);

        for( ii=0;ii<numerofilas;ii++)
                {
                    mesactual=jtable_modelo_existencias.getValueAt(ii, 1).toString().split(":");
                    // System.out.println("Agregando:"+mesactual+" "+mes);
                    if (mesactual[0].equals(codigo))
                        {
                            encontrado=1;
                            jtable_modelo_existencias.setValueAt(existencia,ii ,columna);
                            ii=numerofilas;
                        }
                }
        
    }
private int findcolumna_idtienda (String titulo)  {
        int columnas = jtable_modelo_existencias.getColumnCount(),columencontrado=0;
        String columtitulo[]=null;
      for(int j = 2 ;j < columnas ; j++)
            {
                   columtitulo= jtable_modelo_existencias.getColumnName(j).replace("<html><b>","").replace("</b></html>","").split(":");
                if(columtitulo[0].equals(titulo))
                    {
                            columencontrado=j;
                            j=columnas;
                    }
            }
    //System.out.println("Esto encontro:"+columencontrado);
    return columencontrado;
}
private void carga_datos_rebaja()
        {
/*
    int numerofilas = this.jtable_modelo_existencias.getRowCount(),ii=0;
    String selectin="";
        for( ii=0;ii<numerofilas;ii++)
                {
                if (ii>0)
                    {
                        selectin+=".";
                    }
                selectin+=""+jtable_modelo_existencias.getValueAt(ii ,0)+"";
                }

    System.out.println(selectin);
 */
            //String texto="select * from x1sieuno_articulo_detalle(1,0,'','"+selectin+"') as (ida integer,min integer,max integer,exi double precision,idp integer,cod text,cndt integer,descor text,preve double precision,pre_re real,clavepro text)";
            String texto="";
            System.out.println(texto);
            String despartido[]=null,mi="",ma="";
            int columnatitulo=0;
            try
                {
               rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                while (rs.next())
                    {
                            despartido=rs.getString("descor").split(":");

                            columnatitulo=this.findcolumna_idtienda(despartido[0]);
                            System.out.println(rs.getString("descor")+"en columna:"+columnatitulo);
                             if ((rs.getString("max")!=null) && (rs.getString("min")!=null))
                        {
                            mi=rs.getString("min");
                            ma=rs.getString("max");

                        }
                    else
                        {
                            mi="0";
                            ma="0";
                        }
                    if ( columnatitulo>0)
                        {
                            this.crea_hoja_agregaexistencias(rs.getString("idp"),rs.getString("exi"),columnatitulo,mi,ma);
                        }
                    }
                }
            catch(Exception e)
                {
                    System.out.println(e.getMessage());
                }

        }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        buttonGroup3 = new javax.swing.ButtonGroup();
        buttonGroup4 = new javax.swing.ButtonGroup();
        buttonGroup5 = new javax.swing.ButtonGroup();
        buttonGroup6 = new javax.swing.ButtonGroup();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jScrollPane7 = new javax.swing.JScrollPane();
        jtb_distribucionalta = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                if ((mColIndex < 2) || (mColIndex > 4))
                return false;
                else
                return true;
            }
        }
        ;
        jcbx_historialne1 = new javax.swing.JCheckBox();
        jbtn_guardasolicitud = new javax.swing.JButton();
        jcbx_confirma = new javax.swing.JCheckBox();
        jPanel14 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jlst_clientesdistribucion = new javax.swing.JList();
        jbtn_agregart = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jtf_promocan = new javax.swing.JTextField();
        jtf_iddocto = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jtf_describe = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jtf_observaindica = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jdc_rangoini = new com.toedter.calendar.JDateChooser();
        jLabel4 = new javax.swing.JLabel();
        jdc_rangofinal = new com.toedter.calendar.JDateChooser();
        jtf_tipodocto = new javax.swing.JTextField();
        jPanel6 = new javax.swing.JPanel();
        jrb_bclave = new javax.swing.JRadioButton();
        jrb_bdescrip = new javax.swing.JRadioButton();
        jtf_busqueda = new javax.swing.JTextField();
        jbtn_buscar = new javax.swing.JButton();
        jrb_bitem = new javax.swing.JRadioButton();
        jrb_obexacto = new javax.swing.JRadioButton();
        jrb_obcomienza = new javax.swing.JRadioButton();
        jrb_obaniway = new javax.swing.JRadioButton();
        jrb_bidfam = new javax.swing.JRadioButton();
        jrb_bidsubfam = new javax.swing.JRadioButton();
        jrb_bdessubfam = new javax.swing.JRadioButton();
        jScrollPane4 = new javax.swing.JScrollPane();
        jta_archivo = new javax.swing.JTextArea();
        jrb_bclave1 = new javax.swing.JRadioButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtb_catalogo_articulos = new javax.swing.JTable(){
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }}
            ;
            jLabel10 = new javax.swing.JLabel();
            jtf_registros = new javax.swing.JTextField();
            jbtn_promociondesindi = new javax.swing.JButton();
            jcbx_historialne2 = new javax.swing.JCheckBox();
            jScrollPane8 = new javax.swing.JScrollPane();
            jtb_catalogo_articulos3 = new javax.swing.JTable(){
                public boolean isCellEditable(int rowIndex, int mColIndex) {
                    return false;
                }}
                ;
                jbtn_promociondesindi1 = new javax.swing.JButton();
                jPanel7 = new javax.swing.JPanel();
                jScrollPane2 = new javax.swing.JScrollPane();
                jtb_catalogo_articulos1 = new javax.swing.JTable(){
                    public boolean isCellEditable(int rowIndex, int mColIndex) {
                        return false;
                    }}
                    ;
                    jLabel11 = new javax.swing.JLabel();
                    jtf_registros1 = new javax.swing.JTextField();
                    jtf_idproductopromo = new javax.swing.JTextField();
                    jbtn_promocionindielimi = new javax.swing.JButton();
                    idfila = new javax.swing.JTextField();
                    jcbx_historialne3 = new javax.swing.JCheckBox();
                    jbtn_promocionindielimi1 = new javax.swing.JButton();
                    jtf_idtienda = new javax.swing.JTextField();
                    jtf_idtiendapro = new javax.swing.JTextField();
                    jtf_idtiendapro2 = new javax.swing.JTextField();
                    jPanel2 = new javax.swing.JPanel();
                    jPanel17 = new javax.swing.JPanel();
                    jScrollPane9 = new javax.swing.JScrollPane();
                    jlst_clientesdistribucion1 = new javax.swing.JList();
                    jbtn_agregart1 = new javax.swing.JButton();
                    jLabel13 = new javax.swing.JLabel();
                    jtf_promocan1 = new javax.swing.JTextField();
                    jtf_iddocto2 = new javax.swing.JTextField();
                    jLabel14 = new javax.swing.JLabel();
                    jtf_describe2 = new javax.swing.JTextField();
                    jLabel15 = new javax.swing.JLabel();
                    jtf_observaindica2 = new javax.swing.JTextField();
                    jLabel16 = new javax.swing.JLabel();
                    jdc_rangoini2 = new com.toedter.calendar.JDateChooser();
                    jLabel17 = new javax.swing.JLabel();
                    jdc_rangofinal1 = new com.toedter.calendar.JDateChooser();
                    jPanel18 = new javax.swing.JPanel();
                    jScrollPane10 = new javax.swing.JScrollPane();
                    jtb_distribucionalta1 = new javax.swing.JTable()
                    {
                        public boolean isCellEditable(int rowIndex, int mColIndex) {
                            if ((mColIndex < 2) || (mColIndex > 4))
                            return false;
                            else
                            return true;
                        }
                    }
                    ;
                    jcbx_historialne5 = new javax.swing.JCheckBox();
                    jbtn_guardasolicitud2 = new javax.swing.JButton();
                    jcbx_confirma1 = new javax.swing.JCheckBox();
                    jPanel3 = new javax.swing.JPanel();
                    jPanel19 = new javax.swing.JPanel();
                    jScrollPane13 = new javax.swing.JScrollPane();
                    jlst_clientesdistribucion2 = new javax.swing.JList();
                    jbtn_agregart2 = new javax.swing.JButton();
                    jtf_promocan2 = new javax.swing.JTextField();
                    jtf_iddocto3 = new javax.swing.JTextField();
                    jLabel19 = new javax.swing.JLabel();
                    jtf_describe3 = new javax.swing.JTextField();
                    jLabel20 = new javax.swing.JLabel();
                    jtf_observaindica3 = new javax.swing.JTextField();
                    jLabel21 = new javax.swing.JLabel();
                    jdc_rangoini3 = new com.toedter.calendar.JDateChooser();
                    jLabel22 = new javax.swing.JLabel();
                    jdc_rangofinal2 = new com.toedter.calendar.JDateChooser();
                    jtf_tipodocto1 = new javax.swing.JTextField();
                    jLabel25 = new javax.swing.JLabel();
                    jtf_promokitpzpag = new javax.swing.JTextField();
                    jLabel26 = new javax.swing.JLabel();
                    jtf_promokitpzgrat = new javax.swing.JTextField();
                    jPanel20 = new javax.swing.JPanel();
                    jScrollPane14 = new javax.swing.JScrollPane();
                    jtb_distribucionalta4 = new javax.swing.JTable()
                    {
                        public boolean isCellEditable(int rowIndex, int mColIndex) {
                            if ((mColIndex < 2) || (mColIndex > 6))
                            return false;
                            else
                            return true;
                        }
                    }
                    ;
                    jcbx_historialne6 = new javax.swing.JCheckBox();
                    jbtn_guardasolicitud3 = new javax.swing.JButton();
                    jcbx_confirma2 = new javax.swing.JCheckBox();
                    jPanel21 = new javax.swing.JPanel();
                    jrb_bclave4 = new javax.swing.JRadioButton();
                    jrb_bdescrip2 = new javax.swing.JRadioButton();
                    jtf_busqueda3 = new javax.swing.JTextField();
                    jbtn_buscar2 = new javax.swing.JButton();
                    jrb_bitem2 = new javax.swing.JRadioButton();
                    jrb_obexacto2 = new javax.swing.JRadioButton();
                    jrb_obcomienza2 = new javax.swing.JRadioButton();
                    jrb_obaniway2 = new javax.swing.JRadioButton();
                    jrb_bidfam2 = new javax.swing.JRadioButton();
                    jrb_bidsubfam2 = new javax.swing.JRadioButton();
                    jrb_bdessubfam2 = new javax.swing.JRadioButton();
                    jScrollPane15 = new javax.swing.JScrollPane();
                    jta_archivo2 = new javax.swing.JTextArea();
                    jrb_bclave5 = new javax.swing.JRadioButton();
                    jScrollPane16 = new javax.swing.JScrollPane();
                    jtb_catalogo_articulos2 = new javax.swing.JTable(){
                        public boolean isCellEditable(int rowIndex, int mColIndex) {
                            return false;
                        }}
                        ;
                        jLabel23 = new javax.swing.JLabel();
                        jtf_registros2 = new javax.swing.JTextField();
                        jcbx_historialne7 = new javax.swing.JCheckBox();
                        jScrollPane17 = new javax.swing.JScrollPane();
                        jtb_catalogo_articulos4 = new javax.swing.JTable(){
                            public boolean isCellEditable(int rowIndex, int mColIndex) {
                                return false;
                            }}
                            ;
                            jbtn_promociondesindi3 = new javax.swing.JButton();
                            jbtn_promociondesindi4 = new javax.swing.JButton();
                            jPanel22 = new javax.swing.JPanel();
                            jScrollPane18 = new javax.swing.JScrollPane();
                            jtb_catalogo_articulos5 = new javax.swing.JTable(){
                                public boolean isCellEditable(int rowIndex, int mColIndex) {
                                    return false;
                                }}
                                ;
                                jLabel24 = new javax.swing.JLabel();
                                jtf_registros3 = new javax.swing.JTextField();
                                jtf_idproductopromo1 = new javax.swing.JTextField();
                                jbtn_promocionindielimi2 = new javax.swing.JButton();
                                idfila1 = new javax.swing.JTextField();
                                jcbx_historialne8 = new javax.swing.JCheckBox();
                                jbtn_promocionindielimi3 = new javax.swing.JButton();
                                jtf_idtienda1 = new javax.swing.JTextField();
                                jtf_idtiendapro1 = new javax.swing.JTextField();
                                jPanel8 = new javax.swing.JPanel();
                                jPanel9 = new javax.swing.JPanel();
                                jPanel12 = new javax.swing.JPanel();
                                jScrollPane11 = new javax.swing.JScrollPane();
                                jtb_distribucionalta2 = new javax.swing.JTable()
                                {
                                    public boolean isCellEditable(int rowIndex, int mColIndex) {
                                        if ((mColIndex < 2) || (mColIndex > 4))
                                        return false;
                                        else
                                        return true;
                                    }
                                }
                                ;
                                jrbt_rebfilfam = new javax.swing.JRadioButton();
                                jrbt_rebfilsub = new javax.swing.JRadioButton();
                                jbtn_prereb_verifica = new javax.swing.JButton();
                                jcbx_historialne4 = new javax.swing.JCheckBox();
                                jPanel10 = new javax.swing.JPanel();
                                jrb_obexacto1 = new javax.swing.JRadioButton();
                                jrb_obcomienza1 = new javax.swing.JRadioButton();
                                jrb_obaniway1 = new javax.swing.JRadioButton();
                                jtf_busqueda1 = new javax.swing.JTextField();
                                jbtn_buscar1 = new javax.swing.JButton();
                                jrb_bclave2 = new javax.swing.JRadioButton();
                                jrb_bclave3 = new javax.swing.JRadioButton();
                                jrb_bdescrip1 = new javax.swing.JRadioButton();
                                jrb_bitem1 = new javax.swing.JRadioButton();
                                jrb_bidsubfam1 = new javax.swing.JRadioButton();
                                jrb_bidfam1 = new javax.swing.JRadioButton();
                                jrb_bdessubfam1 = new javax.swing.JRadioButton();
                                jScrollPane5 = new javax.swing.JScrollPane();
                                jta_archivo1 = new javax.swing.JTextArea();
                                jtf_rebidfila1 = new javax.swing.JTextField();
                                jtf_rebidfila = new javax.swing.JTextField();
                                jPanel13 = new javax.swing.JPanel();
                                jLabel8 = new javax.swing.JLabel();
                                jtf_describe1 = new javax.swing.JTextField();
                                jLabel9 = new javax.swing.JLabel();
                                jdc_rangoini1 = new com.toedter.calendar.JDateChooser();
                                jbtn_guardasolicitud1 = new javax.swing.JButton();
                                jtf_iddocto1 = new javax.swing.JTextField();
                                jLabel12 = new javax.swing.JLabel();
                                jtf_observaindica1 = new javax.swing.JTextField();
                                jPanel11 = new javax.swing.JPanel();
                                jScrollPane3 = new javax.swing.JScrollPane();
                                jtb_catalogo_artiexis = new javax.swing.JTable(){
                                    public boolean isCellEditable(int rowIndex, int mColIndex) {
                                        return false;
                                    }}
                                    ;
                                    jPanel15 = new javax.swing.JPanel();
                                    jScrollPane12 = new javax.swing.JScrollPane();
                                    jtb_distribucionalta3 = new javax.swing.JTable()
                                    {
                                        public boolean isCellEditable(int rowIndex, int mColIndex) {
                                            if ((mColIndex < 2) || (mColIndex > 4))
                                            return false;
                                            else
                                            return true;
                                        }
                                    }
                                    ;
                                    jPanel16 = new javax.swing.JPanel();
                                    jtf_rebajaidt1 = new javax.swing.JTextField();
                                    jtf_rebajaidt = new javax.swing.JTextField();
                                    jtf_rebajacodigo = new javax.swing.JTextField();
                                    jtf_rebajadescrip = new javax.swing.JTextField();
                                    jButton6 = new javax.swing.JButton();
                                    jtf_rebaprecio = new javax.swing.JTextField();
                                    jLabel6 = new javax.swing.JLabel();
                                    jButton7 = new javax.swing.JButton();
                                    jLabel2 = new javax.swing.JLabel();
                                    jtf_busqueda2 = new javax.swing.JTextField();
                                    jButton4 = new javax.swing.JButton();
                                    jButton3 = new javax.swing.JButton();
                                    jbtn_eliminareb = new javax.swing.JButton();
                                    jbtn_eliminareball = new javax.swing.JButton();
                                    jtf_rebidtiendaactual = new javax.swing.JTextField();
                                    jMenuBar1 = new javax.swing.JMenuBar();
                                    jMenu1 = new javax.swing.JMenu();
                                    jmni_export = new javax.swing.JMenuItem();
                                    jmni_salir = new javax.swing.JMenuItem();
                                    jMenu2 = new javax.swing.JMenu();
                                    jmni_escape = new javax.swing.JMenuItem();
                                    jmni_importaid = new javax.swing.JMenuItem();
                                    jmni_importarclave = new javax.swing.JMenuItem();
                                    jmni_importacsv = new javax.swing.JMenuItem();
                                    jMenuItem1 = new javax.swing.JMenuItem();
                                    jMenuItem2 = new javax.swing.JMenuItem();
                                    jMenu3 = new javax.swing.JMenu();

                                    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
                                    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(sie_invdis.Sie_invdisApp.class).getContext().getResourceMap(articulos_sie_promociones_alta_sie.class);
                                    setTitle(resourceMap.getString("Form.title")); // NOI18N
                                    setName("Form"); // NOI18N

                                    jTabbedPane1.setName("jTabbedPane1"); // NOI18N
                                    jTabbedPane1.addChangeListener(new javax.swing.event.ChangeListener() {
                                        public void stateChanged(javax.swing.event.ChangeEvent evt) {
                                            jTabbedPane1StateChanged(evt);
                                        }
                                    });

                                    jPanel1.setName("jPanel1"); // NOI18N

                                    jPanel5.setName("jPanel5"); // NOI18N

                                    jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel4.border.title"))); // NOI18N
                                    jPanel4.setName("jPanel4"); // NOI18N

                                    jScrollPane7.setName("jScrollPane7"); // NOI18N

                                    jtb_distribucionalta.setModel(this.jtable_modelo_tiendas);
                                    jtb_distribucionalta.setName("jtb_distribucionalta"); // NOI18N
                                    jtb_distribucionalta.setRowHeight(26);
                                    jtb_distribucionalta.addMouseListener(new java.awt.event.MouseAdapter() {
                                        public void mouseClicked(java.awt.event.MouseEvent evt) {
                                            jtb_distribucionaltaMouseClicked(evt);
                                            if(evt.getClickCount() >= 2)
                                            {
                                                dioclickverexixti(evt);
                                                //System.out.println(" double click" );

                                            }
                                        }
                                    });
                                    jtb_distribucionalta.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
                                        public void propertyChange(java.beans.PropertyChangeEvent evt) {
                                            jtb_distribucionaltaPropertyChange(evt);
                                        }
                                    });
                                    jtb_distribucionalta.addKeyListener(new java.awt.event.KeyAdapter() {
                                        public void keyPressed(java.awt.event.KeyEvent evt) {
                                            jtb_distribucionaltaKeyPressed(evt);
                                        }
                                    });
                                    jScrollPane7.setViewportView(jtb_distribucionalta);

                                    jcbx_historialne1.setText(resourceMap.getString("jcbx_historialne1.text")); // NOI18N
                                    jcbx_historialne1.setName("jcbx_historialne1"); // NOI18N
                                    jcbx_historialne1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jcbx_historialne1ActionPerformed(evt);
                                        }
                                    });

                                    jbtn_guardasolicitud.setIcon(resourceMap.getIcon("jbtn_guardasolicitud.icon")); // NOI18N
                                    jbtn_guardasolicitud.setText(resourceMap.getString("jbtn_guardasolicitud.text")); // NOI18N
                                    jbtn_guardasolicitud.setToolTipText(resourceMap.getString("jbtn_guardasolicitud.toolTipText")); // NOI18N
                                    jbtn_guardasolicitud.setName("jbtn_guardasolicitud"); // NOI18N
                                    jbtn_guardasolicitud.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_guardasolicitudActionPerformed(evt);
                                        }
                                    });

                                    jcbx_confirma.setText(resourceMap.getString("jcbx_confirma.text")); // NOI18N
                                    jcbx_confirma.setName("jcbx_confirma"); // NOI18N
                                    jcbx_confirma.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jcbx_confirmaActionPerformed(evt);
                                        }
                                    });

                                    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
                                    jPanel4.setLayout(jPanel4Layout);
                                    jPanel4Layout.setHorizontalGroup(
                                        jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel4Layout.createSequentialGroup()
                                            .addComponent(jcbx_historialne1)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 172, Short.MAX_VALUE)
                                            .addComponent(jcbx_confirma, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(jbtn_guardasolicitud, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addContainerGap())
                                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel4Layout.createSequentialGroup()
                                                .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE)
                                                .addContainerGap()))
                                    );
                                    jPanel4Layout.setVerticalGroup(
                                        jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                                            .addContainerGap(119, Short.MAX_VALUE)
                                            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jcbx_historialne1)
                                                .addComponent(jbtn_guardasolicitud)
                                                .addComponent(jcbx_confirma)))
                                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel4Layout.createSequentialGroup()
                                                .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addContainerGap(30, Short.MAX_VALUE)))
                                    );

                                    jPanel14.setName("jPanel14"); // NOI18N

                                    jScrollPane6.setName("jScrollPane6"); // NOI18N

                                    jlst_clientesdistribucion.setModel(this.modelo);
                                    jlst_clientesdistribucion.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
                                    jlst_clientesdistribucion.setName("jlst_clientesdistribucion"); // NOI18N
                                    jlst_clientesdistribucion.addMouseListener(new java.awt.event.MouseAdapter() {
                                        public void mouseClicked(java.awt.event.MouseEvent evt) {
                                            jlst_clientesdistribucionMouseClicked(evt);
                                            if(evt.getClickCount() >= 1)
                                            {
                                                dioclick(evt);
                                            }
                                        }
                                    });
                                    jScrollPane6.setViewportView(jlst_clientesdistribucion);

                                    jbtn_agregart.setIcon(resourceMap.getIcon("jbtn_agregart.icon")); // NOI18N
                                    jbtn_agregart.setText(resourceMap.getString("jbtn_agregart.text")); // NOI18N
                                    jbtn_agregart.setToolTipText(resourceMap.getString("jbtn_agregart.toolTipText")); // NOI18N
                                    jbtn_agregart.setName("jbtn_agregart"); // NOI18N
                                    jbtn_agregart.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_agregartActionPerformed(evt);
                                        }
                                    });

                                    jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
                                    jLabel7.setName("jLabel7"); // NOI18N

                                    jtf_promocan.setText(resourceMap.getString("jtf_promocan.text")); // NOI18N
                                    jtf_promocan.setName("jtf_promocan"); // NOI18N
                                    jtf_promocan.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_promocanActionPerformed(evt);
                                        }
                                    });

                                    jtf_iddocto.setEditable(false);
                                    jtf_iddocto.setText(resourceMap.getString("jtf_iddocto.text")); // NOI18N
                                    jtf_iddocto.setName("jtf_iddocto"); // NOI18N

                                    jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
                                    jLabel1.setName("jLabel1"); // NOI18N

                                    jtf_describe.setToolTipText(resourceMap.getString("jtf_describe.toolTipText")); // NOI18N
                                    jtf_describe.setName("jtf_describe"); // NOI18N
                                    jtf_describe.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_describeActionPerformed(evt);
                                        }
                                    });

                                    jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
                                    jLabel5.setName("jLabel5"); // NOI18N

                                    jtf_observaindica.setName("jtf_observaindica"); // NOI18N

                                    jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
                                    jLabel3.setName("jLabel3"); // NOI18N

                                    jdc_rangoini.setDateFormatString(resourceMap.getString("jdc_rangoini.dateFormatString")); // NOI18N
                                    jdc_rangoini.setName("jdc_rangoini"); // NOI18N

                                    jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
                                    jLabel4.setName("jLabel4"); // NOI18N

                                    jdc_rangofinal.setDateFormatString(resourceMap.getString("jdc_rangofinal.dateFormatString")); // NOI18N
                                    jdc_rangofinal.setName("jdc_rangofinal"); // NOI18N

                                    jtf_tipodocto.setEditable(false);
                                    jtf_tipodocto.setText(resourceMap.getString("jtf_tipodocto.text")); // NOI18N
                                    jtf_tipodocto.setName("jtf_tipodocto"); // NOI18N

                                    javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
                                    jPanel14.setLayout(jPanel14Layout);
                                    jPanel14Layout.setHorizontalGroup(
                                        jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel14Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()
                                                    .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel14Layout.createSequentialGroup()
                                                            .addComponent(jLabel7)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jtf_promocan, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel14Layout.createSequentialGroup()
                                                            .addComponent(jLabel3)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jdc_rangoini, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addGap(18, 18, 18)
                                                            .addComponent(jLabel4)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                            .addComponent(jdc_rangofinal, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel14Layout.createSequentialGroup()
                                                                .addComponent(jLabel1)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                .addComponent(jtf_describe))
                                                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel14Layout.createSequentialGroup()
                                                                .addComponent(jLabel5)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                                .addComponent(jtf_observaindica, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
                                                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()
                                                    .addComponent(jtf_iddocto, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jtf_tipodocto, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 275, Short.MAX_VALUE)
                                                    .addComponent(jbtn_agregart, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addContainerGap())
                                    );
                                    jPanel14Layout.setVerticalGroup(
                                        jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel14Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel14Layout.createSequentialGroup()
                                                    .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jtf_promocan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jLabel7))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jLabel1)
                                                        .addComponent(jtf_describe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jLabel5)
                                                        .addComponent(jtf_observaindica, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(jLabel3)
                                                        .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                .addComponent(jdc_rangofinal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                .addGroup(jPanel14Layout.createSequentialGroup()
                                                                    .addGap(6, 6, 6)
                                                                    .addComponent(jLabel4)))
                                                            .addComponent(jdc_rangoini, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                    .addGap(11, 11, 11)
                                                    .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jtf_iddocto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jtf_tipodocto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                .addGroup(jPanel14Layout.createSequentialGroup()
                                                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jbtn_agregart)))
                                            .addContainerGap(16, Short.MAX_VALUE))
                                    );

                                    javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
                                    jPanel5.setLayout(jPanel5Layout);
                                    jPanel5Layout.setHorizontalGroup(
                                        jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                                            .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    );
                                    jPanel5Layout.setVerticalGroup(
                                        jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addGap(11, 11, 11))
                                    );

                                    jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel6.border.title"))); // NOI18N
                                    jPanel6.setName("jPanel6"); // NOI18N

                                    buttonGroup2.add(jrb_bclave);
                                    jrb_bclave.setText(resourceMap.getString("jrb_bclave.text")); // NOI18N
                                    jrb_bclave.setToolTipText(resourceMap.getString("jrb_bclave.toolTipText")); // NOI18N
                                    jrb_bclave.setActionCommand(resourceMap.getString("jrb_bclave.actionCommand")); // NOI18N
                                    jrb_bclave.setName("jrb_bclave"); // NOI18N
                                    jrb_bclave.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bclaveActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup2.add(jrb_bdescrip);
                                    jrb_bdescrip.setText(resourceMap.getString("jrb_bdescrip.text")); // NOI18N
                                    jrb_bdescrip.setToolTipText(resourceMap.getString("jrb_bdescrip.toolTipText")); // NOI18N
                                    jrb_bdescrip.setActionCommand(resourceMap.getString("jrb_bdescrip.actionCommand")); // NOI18N
                                    jrb_bdescrip.setName("jrb_bdescrip"); // NOI18N
                                    jrb_bdescrip.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bdescripActionPerformed(evt);
                                        }
                                    });

                                    jtf_busqueda.setToolTipText(resourceMap.getString("jtf_busqueda.toolTipText")); // NOI18N
                                    jtf_busqueda.setName("jtf_busqueda"); // NOI18N
                                    jtf_busqueda.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_busquedaActionPerformed(evt);
                                        }
                                    });

                                    jbtn_buscar.setIcon(resourceMap.getIcon("jbtn_buscar.icon")); // NOI18N
                                    jbtn_buscar.setText(resourceMap.getString("jbtn_buscar.text")); // NOI18N
                                    jbtn_buscar.setName("jbtn_buscar"); // NOI18N
                                    jbtn_buscar.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_buscarActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup2.add(jrb_bitem);
                                    jrb_bitem.setText(resourceMap.getString("jrb_bitem.text")); // NOI18N
                                    jrb_bitem.setToolTipText(resourceMap.getString("jrb_bitem.toolTipText")); // NOI18N
                                    jrb_bitem.setActionCommand(resourceMap.getString("jrb_bitem.actionCommand")); // NOI18N
                                    jrb_bitem.setName("jrb_bitem"); // NOI18N
                                    jrb_bitem.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bitemActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup1.add(jrb_obexacto);
                                    jrb_obexacto.setText(resourceMap.getString("jrb_obexacto.text")); // NOI18N
                                    jrb_obexacto.setToolTipText(resourceMap.getString("jrb_obexacto.toolTipText")); // NOI18N
                                    jrb_obexacto.setActionCommand(resourceMap.getString("jrb_obexacto.actionCommand")); // NOI18N
                                    jrb_obexacto.setName("jrb_obexacto"); // NOI18N
                                    jrb_obexacto.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_obexactoActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup1.add(jrb_obcomienza);
                                    jrb_obcomienza.setText(resourceMap.getString("jrb_obcomienza.text")); // NOI18N
                                    jrb_obcomienza.setToolTipText(resourceMap.getString("jrb_obcomienza.toolTipText")); // NOI18N
                                    jrb_obcomienza.setActionCommand(resourceMap.getString("jrb_obcomienza.actionCommand")); // NOI18N
                                    jrb_obcomienza.setName("jrb_obcomienza"); // NOI18N
                                    jrb_obcomienza.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_obcomienzaActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup1.add(jrb_obaniway);
                                    jrb_obaniway.setText(resourceMap.getString("jrb_obaniway.text")); // NOI18N
                                    jrb_obaniway.setToolTipText(resourceMap.getString("jrb_obaniway.toolTipText")); // NOI18N
                                    jrb_obaniway.setActionCommand(resourceMap.getString("jrb_obaniway.actionCommand")); // NOI18N
                                    jrb_obaniway.setName("jrb_obaniway"); // NOI18N
                                    jrb_obaniway.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_obaniwayActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup2.add(jrb_bidfam);
                                    jrb_bidfam.setText(resourceMap.getString("jrb_bidfam.text")); // NOI18N
                                    jrb_bidfam.setToolTipText(resourceMap.getString("jrb_bidfam.toolTipText")); // NOI18N
                                    jrb_bidfam.setActionCommand(resourceMap.getString("jrb_bidfam.actionCommand")); // NOI18N
                                    jrb_bidfam.setName("jrb_bidfam"); // NOI18N
                                    jrb_bidfam.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bidfamActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup2.add(jrb_bidsubfam);
                                    jrb_bidsubfam.setText(resourceMap.getString("jrb_bidsubfam.text")); // NOI18N
                                    jrb_bidsubfam.setToolTipText(resourceMap.getString("jrb_bidsubfam.toolTipText")); // NOI18N
                                    jrb_bidsubfam.setActionCommand(resourceMap.getString("jrb_bidsubfam.actionCommand")); // NOI18N
                                    jrb_bidsubfam.setName("jrb_bidsubfam"); // NOI18N
                                    jrb_bidsubfam.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bidsubfamActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup2.add(jrb_bdessubfam);
                                    jrb_bdessubfam.setText(resourceMap.getString("jrb_bdessubfam.text")); // NOI18N
                                    jrb_bdessubfam.setToolTipText(resourceMap.getString("jrb_bdessubfam.toolTipText")); // NOI18N
                                    jrb_bdessubfam.setActionCommand(resourceMap.getString("jrb_bdessubfam.actionCommand")); // NOI18N
                                    jrb_bdessubfam.setName("jrb_bdessubfam"); // NOI18N
                                    jrb_bdessubfam.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bdessubfamActionPerformed(evt);
                                        }
                                    });

                                    jScrollPane4.setName("jScrollPane4"); // NOI18N

                                    jta_archivo.setColumns(20);
                                    jta_archivo.setRows(5);
                                    jta_archivo.setName("jta_archivo"); // NOI18N
                                    jScrollPane4.setViewportView(jta_archivo);

                                    buttonGroup2.add(jrb_bclave1);
                                    jrb_bclave1.setText(resourceMap.getString("jrb_bclave1.text")); // NOI18N
                                    jrb_bclave1.setToolTipText(resourceMap.getString("jrb_bclave1.toolTipText")); // NOI18N
                                    jrb_bclave1.setActionCommand(resourceMap.getString("jrb_bclave1.actionCommand")); // NOI18N
                                    jrb_bclave1.setName("jrb_bclave1"); // NOI18N
                                    jrb_bclave1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bclave1ActionPerformed(evt);
                                        }
                                    });

                                    jScrollPane1.setName("jScrollPane1"); // NOI18N

                                    jtb_catalogo_articulos.setModel(this.jtable_modelo);
                                    jtb_catalogo_articulos.setName("jtb_catalogo_articulos"); // NOI18N
                                    jtb_catalogo_articulos.setRowHeight(26);
                                    jtb_catalogo_articulos.addMouseListener(new java.awt.event.MouseAdapter() {
                                        public void mouseClicked(java.awt.event.MouseEvent evt) {
                                            jtb_catalogo_articulosMouseClicked(evt);
                                            if(evt.getClickCount() >= 1)
                                            {
                                                dioclickpromover(evt);
                                                //System.out.println(" double click" );

                                            }
                                        }
                                    });
                                    jScrollPane1.setViewportView(jtb_catalogo_articulos);

                                    jLabel10.setFont(resourceMap.getFont("jLabel10.font")); // NOI18N
                                    jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
                                    jLabel10.setName("jLabel10"); // NOI18N

                                    jtf_registros.setEditable(false);
                                    jtf_registros.setFont(resourceMap.getFont("jtf_registros.font")); // NOI18N
                                    jtf_registros.setText(resourceMap.getString("jtf_registros.text")); // NOI18N
                                    jtf_registros.setName("jtf_registros"); // NOI18N

                                    jbtn_promociondesindi.setIcon(resourceMap.getIcon("jbtn_promociondesindi.icon")); // NOI18N
                                    jbtn_promociondesindi.setText(resourceMap.getString("jbtn_promociondesindi.text")); // NOI18N
                                    jbtn_promociondesindi.setToolTipText(resourceMap.getString("jbtn_promociondesindi.toolTipText")); // NOI18N
                                    jbtn_promociondesindi.setName("jbtn_promociondesindi"); // NOI18N
                                    jbtn_promociondesindi.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_promociondesindiActionPerformed(evt);
                                        }
                                    });

                                    jcbx_historialne2.setText(resourceMap.getString("jcbx_historialne2.text")); // NOI18N
                                    jcbx_historialne2.setName("jcbx_historialne2"); // NOI18N
                                    jcbx_historialne2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jcbx_historialne2ActionPerformed(evt);
                                        }
                                    });

                                    jScrollPane8.setName("jScrollPane8"); // NOI18N

                                    jtb_catalogo_articulos3.setModel(this.jtable_modelop);
                                    jtb_catalogo_articulos3.setName("jtb_catalogo_articulos3"); // NOI18N
                                    jtb_catalogo_articulos3.setRowHeight(26);
                                    jScrollPane8.setViewportView(jtb_catalogo_articulos3);

                                    jbtn_promociondesindi1.setText(resourceMap.getString("jbtn_promociondesindi1.text")); // NOI18N
                                    jbtn_promociondesindi1.setToolTipText(resourceMap.getString("jbtn_promociondesindi1.toolTipText")); // NOI18N
                                    jbtn_promociondesindi1.setName("jbtn_promociondesindi1"); // NOI18N
                                    jbtn_promociondesindi1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_promociondesindi1ActionPerformed(evt);
                                        }
                                    });

                                    javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
                                    jPanel6.setLayout(jPanel6Layout);
                                    jPanel6Layout.setHorizontalGroup(
                                        jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel6Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel6Layout.createSequentialGroup()
                                                    .addComponent(jrb_bclave1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(15, 15, 15)
                                                    .addComponent(jrb_bclave)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jrb_bdescrip)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jrb_bitem)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jrb_bidsubfam)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jrb_bidfam)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jrb_bdessubfam))
                                                .addGroup(jPanel6Layout.createSequentialGroup()
                                                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addGroup(jPanel6Layout.createSequentialGroup()
                                                            .addComponent(jrb_obexacto)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jrb_obcomienza)
                                                            .addGap(1, 1, 1)
                                                            .addComponent(jrb_obaniway))
                                                        .addGroup(jPanel6Layout.createSequentialGroup()
                                                            .addComponent(jtf_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jbtn_buscar)))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 361, Short.MAX_VALUE))
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                                                    .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 504, Short.MAX_VALUE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                .addGroup(jPanel6Layout.createSequentialGroup()
                                                                    .addComponent(jtf_registros, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                    .addComponent(jLabel10))
                                                                .addComponent(jcbx_historialne2))
                                                            .addComponent(jbtn_promociondesindi))
                                                        .addComponent(jbtn_promociondesindi1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                                            .addContainerGap())
                                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 621, Short.MAX_VALUE))
                                    );
                                    jPanel6Layout.setVerticalGroup(
                                        jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel6Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addGroup(jPanel6Layout.createSequentialGroup()
                                                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jrb_obexacto)
                                                        .addComponent(jrb_obcomienza)
                                                        .addComponent(jrb_obaniway))
                                                    .addGap(6, 6, 6)
                                                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jtf_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jbtn_buscar)))
                                                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jrb_bclave)
                                                .addComponent(jrb_bdescrip)
                                                .addComponent(jrb_bitem)
                                                .addComponent(jrb_bidsubfam)
                                                .addComponent(jrb_bclave1)
                                                .addComponent(jrb_bidfam)
                                                .addComponent(jrb_bdessubfam))
                                            .addGap(231, 231, 231)
                                            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel6Layout.createSequentialGroup()
                                                    .addComponent(jcbx_historialne2)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 3, Short.MAX_VALUE)
                                                    .addComponent(jbtn_promociondesindi1)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jbtn_promociondesindi)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jtf_registros, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jLabel10)))
                                                .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 107, Short.MAX_VALUE)))
                                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel6Layout.createSequentialGroup()
                                                .addGap(88, 88, 88)
                                                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addContainerGap(119, Short.MAX_VALUE)))
                                    );

                                    jPanel7.setName("jPanel7"); // NOI18N

                                    jScrollPane2.setName("jScrollPane2"); // NOI18N

                                    jtb_catalogo_articulos1.setModel(this.jtable_modelo_pro);
                                    jtb_catalogo_articulos1.setName("jtb_catalogo_articulos1"); // NOI18N
                                    jtb_catalogo_articulos1.setRowHeight(26);
                                    jtb_catalogo_articulos1.addMouseListener(new java.awt.event.MouseAdapter() {
                                        public void mouseClicked(java.awt.event.MouseEvent evt) {
                                            jtb_catalogo_articulos1MouseClicked(evt);
                                            if(evt.getClickCount() >= 1)
                                            {
                                                dioclickpromo(evt);
                                                //System.out.println(" double click" );

                                            }
                                        }
                                    });
                                    jScrollPane2.setViewportView(jtb_catalogo_articulos1);

                                    jLabel11.setFont(resourceMap.getFont("jLabel11.font")); // NOI18N
                                    jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N
                                    jLabel11.setName("jLabel11"); // NOI18N

                                    jtf_registros1.setEditable(false);
                                    jtf_registros1.setFont(resourceMap.getFont("jtf_registros1.font")); // NOI18N
                                    jtf_registros1.setText(resourceMap.getString("jtf_registros1.text")); // NOI18N
                                    jtf_registros1.setName("jtf_registros1"); // NOI18N

                                    jtf_idproductopromo.setEditable(false);
                                    jtf_idproductopromo.setFont(resourceMap.getFont("jtf_idproductopromo.font")); // NOI18N
                                    jtf_idproductopromo.setName("jtf_idproductopromo"); // NOI18N

                                    jbtn_promocionindielimi.setIcon(resourceMap.getIcon("jbtn_promocionindielimi.icon")); // NOI18N
                                    jbtn_promocionindielimi.setText(resourceMap.getString("jbtn_promocionindielimi.text")); // NOI18N
                                    jbtn_promocionindielimi.setName("jbtn_promocionindielimi"); // NOI18N
                                    jbtn_promocionindielimi.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_promocionindielimiActionPerformed(evt);
                                        }
                                    });

                                    idfila.setEditable(false);
                                    idfila.setText(resourceMap.getString("idfila.text")); // NOI18N
                                    idfila.setName("idfila"); // NOI18N

                                    jcbx_historialne3.setText(resourceMap.getString("jcbx_historialne3.text")); // NOI18N
                                    jcbx_historialne3.setToolTipText(resourceMap.getString("jcbx_historialne3.toolTipText")); // NOI18N
                                    jcbx_historialne3.setName("jcbx_historialne3"); // NOI18N
                                    jcbx_historialne3.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jcbx_historialne3ActionPerformed(evt);
                                        }
                                    });

                                    jbtn_promocionindielimi1.setText(resourceMap.getString("jbtn_promocionindielimi1.text")); // NOI18N
                                    jbtn_promocionindielimi1.setName("jbtn_promocionindielimi1"); // NOI18N
                                    jbtn_promocionindielimi1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_promocionindielimi1ActionPerformed(evt);
                                        }
                                    });

                                    jtf_idtienda.setEditable(false);
                                    jtf_idtienda.setText(resourceMap.getString("jtf_idtienda.text")); // NOI18N
                                    jtf_idtienda.setName("jtf_idtienda"); // NOI18N

                                    jtf_idtiendapro.setEditable(false);
                                    jtf_idtiendapro.setText(resourceMap.getString("jtf_idtiendapro.text")); // NOI18N
                                    jtf_idtiendapro.setName("jtf_idtiendapro"); // NOI18N

                                    jtf_idtiendapro2.setEditable(false);
                                    jtf_idtiendapro2.setText(resourceMap.getString("jtf_idtiendapro2.text")); // NOI18N
                                    jtf_idtiendapro2.setName("jtf_idtiendapro2"); // NOI18N

                                    javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
                                    jPanel7.setLayout(jPanel7Layout);
                                    jPanel7Layout.setHorizontalGroup(
                                        jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel7Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addComponent(jLabel11)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jtf_registros1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(43, 43, 43)
                                            .addComponent(idfila, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)
                                            .addComponent(jcbx_historialne3)
                                            .addContainerGap())
                                        .addGroup(jPanel7Layout.createSequentialGroup()
                                            .addGap(6, 6, 6)
                                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jtf_idproductopromo, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGroup(jPanel7Layout.createSequentialGroup()
                                                    .addComponent(jtf_idtienda, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jtf_idtiendapro, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jtf_idtiendapro2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                                                    .addComponent(jbtn_promocionindielimi1, javax.swing.GroupLayout.DEFAULT_SIZE, 172, Short.MAX_VALUE)
                                                    .addContainerGap())
                                                .addGroup(jPanel7Layout.createSequentialGroup()
                                                    .addComponent(jbtn_promocionindielimi)
                                                    .addGap(11, 11, 11))))
                                        .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 375, Short.MAX_VALUE)
                                    );
                                    jPanel7Layout.setVerticalGroup(
                                        jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                                            .addGap(19, 19, 19)
                                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 332, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jLabel11)
                                                .addComponent(jtf_registros1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(idfila, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jcbx_historialne3))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                .addComponent(jtf_idproductopromo)
                                                .addComponent(jbtn_promocionindielimi, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                    .addComponent(jbtn_promocionindielimi1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                    .addComponent(jtf_idtienda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(jtf_idtiendapro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addComponent(jtf_idtiendapro2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addContainerGap())
                                    );

                                    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
                                    jPanel1.setLayout(jPanel1Layout);
                                    jPanel1Layout.setHorizontalGroup(
                                        jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                            .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    );
                                    jPanel1Layout.setVerticalGroup(
                                        jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel1Layout.createSequentialGroup()
                                            .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel1Layout.createSequentialGroup()
                                                    .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                    .addContainerGap())
                                                .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                    );

                                    jTabbedPane1.addTab(resourceMap.getString("jPanel1.TabConstraints.tabTitle"), jPanel1); // NOI18N

                                    jPanel2.setName("jPanel2"); // NOI18N

                                    jPanel17.setName("jPanel17"); // NOI18N

                                    jScrollPane9.setName("jScrollPane9"); // NOI18N

                                    jlst_clientesdistribucion1.setModel(this.modelo);
                                    jlst_clientesdistribucion1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
                                    jlst_clientesdistribucion1.setName("jlst_clientesdistribucion1"); // NOI18N
                                    jlst_clientesdistribucion1.addMouseListener(new java.awt.event.MouseAdapter() {
                                        public void mouseClicked(java.awt.event.MouseEvent evt) {
                                            jlst_clientesdistribucion1MouseClicked(evt);
                                            if(evt.getClickCount() >= 1)
                                            {
                                                dioclickdd(evt);
                                            }
                                        }
                                    });
                                    jScrollPane9.setViewportView(jlst_clientesdistribucion1);

                                    jbtn_agregart1.setIcon(resourceMap.getIcon("jbtn_agregart1.icon")); // NOI18N
                                    jbtn_agregart1.setText(resourceMap.getString("jbtn_agregart1.text")); // NOI18N
                                    jbtn_agregart1.setToolTipText(resourceMap.getString("jbtn_agregart1.toolTipText")); // NOI18N
                                    jbtn_agregart1.setName("jbtn_agregart1"); // NOI18N
                                    jbtn_agregart1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_agregart1ActionPerformed(evt);
                                        }
                                    });

                                    jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
                                    jLabel13.setName("jLabel13"); // NOI18N

                                    jtf_promocan1.setText(resourceMap.getString("jtf_promocan1.text")); // NOI18N
                                    jtf_promocan1.setName("jtf_promocan1"); // NOI18N
                                    jtf_promocan1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_promocan1ActionPerformed(evt);
                                        }
                                    });

                                    jtf_iddocto2.setEditable(false);
                                    jtf_iddocto2.setText(resourceMap.getString("jtf_iddocto2.text")); // NOI18N
                                    jtf_iddocto2.setName("jtf_iddocto2"); // NOI18N

                                    jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
                                    jLabel14.setName("jLabel14"); // NOI18N

                                    jtf_describe2.setToolTipText(resourceMap.getString("jtf_describe2.toolTipText")); // NOI18N
                                    jtf_describe2.setName("jtf_describe2"); // NOI18N
                                    jtf_describe2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_describe2ActionPerformed(evt);
                                        }
                                    });

                                    jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N
                                    jLabel15.setName("jLabel15"); // NOI18N

                                    jtf_observaindica2.setName("jtf_observaindica2"); // NOI18N

                                    jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N
                                    jLabel16.setName("jLabel16"); // NOI18N

                                    jdc_rangoini2.setDateFormatString(resourceMap.getString("jdc_rangoini2.dateFormatString")); // NOI18N
                                    jdc_rangoini2.setName("jdc_rangoini2"); // NOI18N

                                    jLabel17.setText(resourceMap.getString("jLabel17.text")); // NOI18N
                                    jLabel17.setName("jLabel17"); // NOI18N

                                    jdc_rangofinal1.setDateFormatString(resourceMap.getString("jdc_rangofinal1.dateFormatString")); // NOI18N
                                    jdc_rangofinal1.setName("jdc_rangofinal1"); // NOI18N

                                    javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
                                    jPanel17.setLayout(jPanel17Layout);
                                    jPanel17Layout.setHorizontalGroup(
                                        jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel17Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
                                                    .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel17Layout.createSequentialGroup()
                                                            .addComponent(jLabel13)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jtf_promocan1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel17Layout.createSequentialGroup()
                                                            .addComponent(jLabel14)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jtf_describe2, javax.swing.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE))
                                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel17Layout.createSequentialGroup()
                                                            .addComponent(jLabel15)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                            .addComponent(jtf_observaindica2, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel17Layout.createSequentialGroup()
                                                            .addComponent(jLabel16)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jdc_rangoini2, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addGap(18, 18, 18)
                                                            .addComponent(jLabel17)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                            .addComponent(jdc_rangofinal1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
                                                    .addComponent(jtf_iddocto2, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 305, Short.MAX_VALUE)
                                                    .addComponent(jbtn_agregart1, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addContainerGap())
                                    );
                                    jPanel17Layout.setVerticalGroup(
                                        jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel17Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel17Layout.createSequentialGroup()
                                                    .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jtf_promocan1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jLabel13))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jLabel14)
                                                        .addComponent(jtf_describe2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jLabel15)
                                                        .addComponent(jtf_observaindica2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(jLabel16)
                                                        .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                .addComponent(jdc_rangofinal1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                .addGroup(jPanel17Layout.createSequentialGroup()
                                                                    .addGap(6, 6, 6)
                                                                    .addComponent(jLabel17)))
                                                            .addComponent(jdc_rangoini2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jtf_iddocto2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(jPanel17Layout.createSequentialGroup()
                                                    .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jbtn_agregart1)))
                                            .addContainerGap(16, Short.MAX_VALUE))
                                    );

                                    jPanel18.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel18.border.title"))); // NOI18N
                                    jPanel18.setName("jPanel18"); // NOI18N

                                    jScrollPane10.setName("jScrollPane10"); // NOI18N

                                    jtb_distribucionalta1.setModel(this.jtable_modelo_tiendasdd);
                                    jtb_distribucionalta1.setName("jtb_distribucionalta1"); // NOI18N
                                    jtb_distribucionalta1.setRowHeight(26);
                                    jtb_distribucionalta1.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
                                        public void propertyChange(java.beans.PropertyChangeEvent evt) {
                                            jtb_distribucionalta1PropertyChange(evt);
                                        }
                                    });
                                    jtb_distribucionalta1.addKeyListener(new java.awt.event.KeyAdapter() {
                                        public void keyPressed(java.awt.event.KeyEvent evt) {
                                            jtb_distribucionalta1KeyPressed(evt);
                                        }
                                    });
                                    jScrollPane10.setViewportView(jtb_distribucionalta1);

                                    jcbx_historialne5.setText(resourceMap.getString("jcbx_historialne5.text")); // NOI18N
                                    jcbx_historialne5.setName("jcbx_historialne5"); // NOI18N
                                    jcbx_historialne5.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jcbx_historialne5ActionPerformed(evt);
                                        }
                                    });

                                    jbtn_guardasolicitud2.setIcon(resourceMap.getIcon("jbtn_guardasolicitud2.icon")); // NOI18N
                                    jbtn_guardasolicitud2.setText(resourceMap.getString("jbtn_guardasolicitud2.text")); // NOI18N
                                    jbtn_guardasolicitud2.setToolTipText(resourceMap.getString("jbtn_guardasolicitud2.toolTipText")); // NOI18N
                                    jbtn_guardasolicitud2.setName("jbtn_guardasolicitud2"); // NOI18N
                                    jbtn_guardasolicitud2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_guardasolicitud2ActionPerformed(evt);
                                        }
                                    });

                                    jcbx_confirma1.setText(resourceMap.getString("jcbx_confirma1.text")); // NOI18N
                                    jcbx_confirma1.setName("jcbx_confirma1"); // NOI18N
                                    jcbx_confirma1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jcbx_confirma1ActionPerformed(evt);
                                        }
                                    });

                                    javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
                                    jPanel18.setLayout(jPanel18Layout);
                                    jPanel18Layout.setHorizontalGroup(
                                        jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel18Layout.createSequentialGroup()
                                            .addComponent(jcbx_historialne5)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 176, Short.MAX_VALUE)
                                            .addComponent(jcbx_confirma1, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jbtn_guardasolicitud2, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addContainerGap())
                                        .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel18Layout.createSequentialGroup()
                                                .addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE)
                                                .addContainerGap()))
                                    );
                                    jPanel18Layout.setVerticalGroup(
                                        jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel18Layout.createSequentialGroup()
                                            .addContainerGap(119, Short.MAX_VALUE)
                                            .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jcbx_historialne5)
                                                .addComponent(jbtn_guardasolicitud2)
                                                .addComponent(jcbx_confirma1)))
                                        .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel18Layout.createSequentialGroup()
                                                .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addContainerGap(30, Short.MAX_VALUE)))
                                    );

                                    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
                                    jPanel2.setLayout(jPanel2Layout);
                                    jPanel2Layout.setHorizontalGroup(
                                        jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel2Layout.createSequentialGroup()
                                            .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addContainerGap())
                                    );
                                    jPanel2Layout.setVerticalGroup(
                                        jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(jPanel18, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jPanel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addGap(473, 473, 473))
                                    );

                                    jTabbedPane1.addTab(resourceMap.getString("jPanel2.TabConstraints.tabTitle"), jPanel2); // NOI18N

                                    jPanel3.setName("jPanel3"); // NOI18N

                                    jPanel19.setName("jPanel19"); // NOI18N

                                    jScrollPane13.setName("jScrollPane13"); // NOI18N

                                    jlst_clientesdistribucion2.setModel(this.modelo);
                                    jlst_clientesdistribucion2.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
                                    jlst_clientesdistribucion2.setName("jlst_clientesdistribucion2"); // NOI18N
                                    jlst_clientesdistribucion2.addMouseListener(new java.awt.event.MouseAdapter() {
                                        public void mouseClicked(java.awt.event.MouseEvent evt) {
                                            jlst_clientesdistribucion2MouseClicked(evt);
                                            if(evt.getClickCount() >= 1)
                                            {
                                                dioclickkit(evt);
                                            }
                                        }
                                    });
                                    jScrollPane13.setViewportView(jlst_clientesdistribucion2);

                                    jbtn_agregart2.setText(resourceMap.getString("jbtn_agregart2.text")); // NOI18N
                                    jbtn_agregart2.setToolTipText(resourceMap.getString("jbtn_agregart2.toolTipText")); // NOI18N
                                    jbtn_agregart2.setName("jbtn_agregart2"); // NOI18N
                                    jbtn_agregart2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_agregart2ActionPerformed(evt);
                                        }
                                    });

                                    jtf_promocan2.setEditable(false);
                                    jtf_promocan2.setText(resourceMap.getString("jtf_promocan2.text")); // NOI18N
                                    jtf_promocan2.setName("jtf_promocan2"); // NOI18N
                                    jtf_promocan2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_promocan2ActionPerformed(evt);
                                        }
                                    });

                                    jtf_iddocto3.setEditable(false);
                                    jtf_iddocto3.setText(resourceMap.getString("jtf_iddocto3.text")); // NOI18N
                                    jtf_iddocto3.setName("jtf_iddocto3"); // NOI18N

                                    jLabel19.setText(resourceMap.getString("jLabel19.text")); // NOI18N
                                    jLabel19.setName("jLabel19"); // NOI18N

                                    jtf_describe3.setToolTipText(resourceMap.getString("jtf_describe3.toolTipText")); // NOI18N
                                    jtf_describe3.setName("jtf_describe3"); // NOI18N
                                    jtf_describe3.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_describe3ActionPerformed(evt);
                                        }
                                    });

                                    jLabel20.setText(resourceMap.getString("jLabel20.text")); // NOI18N
                                    jLabel20.setName("jLabel20"); // NOI18N

                                    jtf_observaindica3.setName("jtf_observaindica3"); // NOI18N

                                    jLabel21.setText(resourceMap.getString("jLabel21.text")); // NOI18N
                                    jLabel21.setName("jLabel21"); // NOI18N

                                    jdc_rangoini3.setDateFormatString(resourceMap.getString("jdc_rangoini3.dateFormatString")); // NOI18N
                                    jdc_rangoini3.setName("jdc_rangoini3"); // NOI18N

                                    jLabel22.setText(resourceMap.getString("jLabel22.text")); // NOI18N
                                    jLabel22.setName("jLabel22"); // NOI18N

                                    jdc_rangofinal2.setDateFormatString(resourceMap.getString("jdc_rangofinal2.dateFormatString")); // NOI18N
                                    jdc_rangofinal2.setName("jdc_rangofinal2"); // NOI18N

                                    jtf_tipodocto1.setEditable(false);
                                    jtf_tipodocto1.setText(resourceMap.getString("jtf_tipodocto1.text")); // NOI18N
                                    jtf_tipodocto1.setName("jtf_tipodocto1"); // NOI18N

                                    jLabel25.setText(resourceMap.getString("jLabel25.text")); // NOI18N
                                    jLabel25.setName("jLabel25"); // NOI18N

                                    jtf_promokitpzpag.setText(resourceMap.getString("jtf_promokitpzpag.text")); // NOI18N
                                    jtf_promokitpzpag.setName("jtf_promokitpzpag"); // NOI18N
                                    jtf_promokitpzpag.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_promokitpzpagActionPerformed(evt);
                                        }
                                    });

                                    jLabel26.setText(resourceMap.getString("jLabel26.text")); // NOI18N
                                    jLabel26.setName("jLabel26"); // NOI18N

                                    jtf_promokitpzgrat.setText(resourceMap.getString("jtf_promokitpzgrat.text")); // NOI18N
                                    jtf_promokitpzgrat.setName("jtf_promokitpzgrat"); // NOI18N
                                    jtf_promokitpzgrat.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_promokitpzgratActionPerformed(evt);
                                        }
                                    });

                                    javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
                                    jPanel19.setLayout(jPanel19Layout);
                                    jPanel19Layout.setHorizontalGroup(
                                        jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel19Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel19Layout.createSequentialGroup()
                                                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel19Layout.createSequentialGroup()
                                                            .addComponent(jLabel21)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jdc_rangoini3, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addGap(18, 18, 18)
                                                            .addComponent(jLabel22)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                            .addComponent(jdc_rangofinal2, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel19Layout.createSequentialGroup()
                                                                .addComponent(jLabel20)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                                .addComponent(jtf_observaindica3, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel19Layout.createSequentialGroup()
                                                                .addComponent(jLabel19)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                    .addGroup(jPanel19Layout.createSequentialGroup()
                                                                        .addComponent(jLabel25)
                                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                        .addComponent(jtf_promokitpzpag, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                        .addComponent(jLabel26)
                                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                        .addComponent(jtf_promokitpzgrat, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                    .addComponent(jtf_describe3)))))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)
                                                    .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel19Layout.createSequentialGroup()
                                                    .addComponent(jtf_iddocto3, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jtf_tipodocto1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jtf_promocan2, javax.swing.GroupLayout.DEFAULT_SIZE, 39, Short.MAX_VALUE)
                                                    .addGap(216, 216, 216)
                                                    .addComponent(jbtn_agregart2, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addContainerGap())
                                    );
                                    jPanel19Layout.setVerticalGroup(
                                        jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel19Layout.createSequentialGroup()
                                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel19Layout.createSequentialGroup()
                                                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jLabel25)
                                                        .addComponent(jtf_promokitpzpag, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jLabel26)
                                                        .addComponent(jtf_promokitpzgrat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jLabel19)
                                                        .addComponent(jtf_describe3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jLabel20)
                                                        .addComponent(jtf_observaindica3, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(jLabel21)
                                                        .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                                .addComponent(jdc_rangofinal2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                .addGroup(jPanel19Layout.createSequentialGroup()
                                                                    .addGap(6, 6, 6)
                                                                    .addComponent(jLabel22)))
                                                            .addComponent(jdc_rangoini3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                    .addGap(11, 11, 11)
                                                    .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jtf_iddocto3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jtf_tipodocto1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jtf_promocan2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                .addGroup(jPanel19Layout.createSequentialGroup()
                                                    .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jbtn_agregart2))))
                                    );

                                    jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel20.border.title"))); // NOI18N
                                    jPanel20.setName("jPanel20"); // NOI18N

                                    jScrollPane14.setName("jScrollPane14"); // NOI18N

                                    jtb_distribucionalta4.setModel(this.jtable_modelo_tiendaskit);
                                    jtb_distribucionalta4.setName("jtb_distribucionalta4"); // NOI18N
                                    jtb_distribucionalta4.setRowHeight(26);
                                    jtb_distribucionalta4.addMouseListener(new java.awt.event.MouseAdapter() {
                                        public void mouseClicked(java.awt.event.MouseEvent evt) {
                                            jtb_distribucionalta4MouseClicked(evt);
                                            if(evt.getClickCount() >= 2)
                                            {
                                                dioclickverexixtikit(evt);
                                                //System.out.println(" double click" );

                                            }
                                        }
                                    });
                                    jtb_distribucionalta4.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
                                        public void propertyChange(java.beans.PropertyChangeEvent evt) {
                                            jtb_distribucionalta4PropertyChange(evt);
                                        }
                                    });
                                    jtb_distribucionalta4.addKeyListener(new java.awt.event.KeyAdapter() {
                                        public void keyPressed(java.awt.event.KeyEvent evt) {
                                            jtb_distribucionalta4KeyPressed(evt);
                                        }
                                    });
                                    jScrollPane14.setViewportView(jtb_distribucionalta4);

                                    jcbx_historialne6.setText(resourceMap.getString("jcbx_historialne6.text")); // NOI18N
                                    jcbx_historialne6.setName("jcbx_historialne6"); // NOI18N
                                    jcbx_historialne6.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jcbx_historialne6ActionPerformed(evt);
                                        }
                                    });

                                    jbtn_guardasolicitud3.setText(resourceMap.getString("jbtn_guardasolicitud3.text")); // NOI18N
                                    jbtn_guardasolicitud3.setToolTipText(resourceMap.getString("jbtn_guardasolicitud3.toolTipText")); // NOI18N
                                    jbtn_guardasolicitud3.setName("jbtn_guardasolicitud3"); // NOI18N
                                    jbtn_guardasolicitud3.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_guardasolicitud3ActionPerformed(evt);
                                        }
                                    });

                                    jcbx_confirma2.setText(resourceMap.getString("jcbx_confirma2.text")); // NOI18N
                                    jcbx_confirma2.setName("jcbx_confirma2"); // NOI18N
                                    jcbx_confirma2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jcbx_confirma2ActionPerformed(evt);
                                        }
                                    });

                                    javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
                                    jPanel20.setLayout(jPanel20Layout);
                                    jPanel20Layout.setHorizontalGroup(
                                        jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel20Layout.createSequentialGroup()
                                            .addComponent(jcbx_historialne6)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 172, Short.MAX_VALUE)
                                            .addComponent(jcbx_confirma2, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(jbtn_guardasolicitud3, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addContainerGap())
                                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel20Layout.createSequentialGroup()
                                                .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 492, Short.MAX_VALUE)
                                                .addContainerGap()))
                                    );
                                    jPanel20Layout.setVerticalGroup(
                                        jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel20Layout.createSequentialGroup()
                                            .addContainerGap(103, Short.MAX_VALUE)
                                            .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jcbx_historialne6)
                                                .addComponent(jbtn_guardasolicitud3)
                                                .addComponent(jcbx_confirma2)))
                                        .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel20Layout.createSequentialGroup()
                                                .addComponent(jScrollPane14, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addContainerGap(27, Short.MAX_VALUE)))
                                    );

                                    jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel21.border.title"))); // NOI18N
                                    jPanel21.setName("jPanel21"); // NOI18N

                                    buttonGroup2.add(jrb_bclave4);
                                    jrb_bclave4.setText(resourceMap.getString("jrb_bclave4.text")); // NOI18N
                                    jrb_bclave4.setToolTipText(resourceMap.getString("jrb_bclave4.toolTipText")); // NOI18N
                                    jrb_bclave4.setActionCommand(resourceMap.getString("jrb_bclave4.actionCommand")); // NOI18N
                                    jrb_bclave4.setName("jrb_bclave4"); // NOI18N
                                    jrb_bclave4.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bclave4ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup2.add(jrb_bdescrip2);
                                    jrb_bdescrip2.setText(resourceMap.getString("jrb_bdescrip2.text")); // NOI18N
                                    jrb_bdescrip2.setToolTipText(resourceMap.getString("jrb_bdescrip2.toolTipText")); // NOI18N
                                    jrb_bdescrip2.setActionCommand(resourceMap.getString("jrb_bdescrip2.actionCommand")); // NOI18N
                                    jrb_bdescrip2.setName("jrb_bdescrip2"); // NOI18N
                                    jrb_bdescrip2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bdescrip2ActionPerformed(evt);
                                        }
                                    });

                                    jtf_busqueda3.setToolTipText(resourceMap.getString("jtf_busqueda3.toolTipText")); // NOI18N
                                    jtf_busqueda3.setName("jtf_busqueda3"); // NOI18N
                                    jtf_busqueda3.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_busqueda3ActionPerformed(evt);
                                        }
                                    });

                                    jbtn_buscar2.setText(resourceMap.getString("jbtn_buscar2.text")); // NOI18N
                                    jbtn_buscar2.setName("jbtn_buscar2"); // NOI18N
                                    jbtn_buscar2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_buscar2ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup2.add(jrb_bitem2);
                                    jrb_bitem2.setText(resourceMap.getString("jrb_bitem2.text")); // NOI18N
                                    jrb_bitem2.setToolTipText(resourceMap.getString("jrb_bitem2.toolTipText")); // NOI18N
                                    jrb_bitem2.setActionCommand(resourceMap.getString("jrb_bitem2.actionCommand")); // NOI18N
                                    jrb_bitem2.setName("jrb_bitem2"); // NOI18N
                                    jrb_bitem2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bitem2ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup1.add(jrb_obexacto2);
                                    jrb_obexacto2.setText(resourceMap.getString("jrb_obexacto2.text")); // NOI18N
                                    jrb_obexacto2.setToolTipText(resourceMap.getString("jrb_obexacto2.toolTipText")); // NOI18N
                                    jrb_obexacto2.setActionCommand(resourceMap.getString("jrb_obexacto2.actionCommand")); // NOI18N
                                    jrb_obexacto2.setName("jrb_obexacto2"); // NOI18N
                                    jrb_obexacto2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_obexacto2ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup1.add(jrb_obcomienza2);
                                    jrb_obcomienza2.setText(resourceMap.getString("jrb_obcomienza2.text")); // NOI18N
                                    jrb_obcomienza2.setToolTipText(resourceMap.getString("jrb_obcomienza2.toolTipText")); // NOI18N
                                    jrb_obcomienza2.setActionCommand(resourceMap.getString("jrb_obcomienza2.actionCommand")); // NOI18N
                                    jrb_obcomienza2.setName("jrb_obcomienza2"); // NOI18N
                                    jrb_obcomienza2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_obcomienza2ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup1.add(jrb_obaniway2);
                                    jrb_obaniway2.setText(resourceMap.getString("jrb_obaniway2.text")); // NOI18N
                                    jrb_obaniway2.setToolTipText(resourceMap.getString("jrb_obaniway2.toolTipText")); // NOI18N
                                    jrb_obaniway2.setActionCommand(resourceMap.getString("jrb_obaniway2.actionCommand")); // NOI18N
                                    jrb_obaniway2.setName("jrb_obaniway2"); // NOI18N
                                    jrb_obaniway2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_obaniway2ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup2.add(jrb_bidfam2);
                                    jrb_bidfam2.setText(resourceMap.getString("jrb_bidfam2.text")); // NOI18N
                                    jrb_bidfam2.setToolTipText(resourceMap.getString("jrb_bidfam2.toolTipText")); // NOI18N
                                    jrb_bidfam2.setActionCommand(resourceMap.getString("jrb_bidfam2.actionCommand")); // NOI18N
                                    jrb_bidfam2.setName("jrb_bidfam2"); // NOI18N
                                    jrb_bidfam2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bidfam2ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup2.add(jrb_bidsubfam2);
                                    jrb_bidsubfam2.setText(resourceMap.getString("jrb_bidsubfam2.text")); // NOI18N
                                    jrb_bidsubfam2.setToolTipText(resourceMap.getString("jrb_bidsubfam2.toolTipText")); // NOI18N
                                    jrb_bidsubfam2.setActionCommand(resourceMap.getString("jrb_bidsubfam2.actionCommand")); // NOI18N
                                    jrb_bidsubfam2.setName("jrb_bidsubfam2"); // NOI18N
                                    jrb_bidsubfam2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bidsubfam2ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup2.add(jrb_bdessubfam2);
                                    jrb_bdessubfam2.setText(resourceMap.getString("jrb_bdessubfam2.text")); // NOI18N
                                    jrb_bdessubfam2.setToolTipText(resourceMap.getString("jrb_bdessubfam2.toolTipText")); // NOI18N
                                    jrb_bdessubfam2.setActionCommand(resourceMap.getString("jrb_bdessubfam2.actionCommand")); // NOI18N
                                    jrb_bdessubfam2.setName("jrb_bdessubfam2"); // NOI18N
                                    jrb_bdessubfam2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bdessubfam2ActionPerformed(evt);
                                        }
                                    });

                                    jScrollPane15.setName("jScrollPane15"); // NOI18N

                                    jta_archivo2.setColumns(20);
                                    jta_archivo2.setRows(5);
                                    jta_archivo2.setName("jta_archivo2"); // NOI18N
                                    jScrollPane15.setViewportView(jta_archivo2);

                                    buttonGroup2.add(jrb_bclave5);
                                    jrb_bclave5.setText(resourceMap.getString("jrb_bclave5.text")); // NOI18N
                                    jrb_bclave5.setToolTipText(resourceMap.getString("jrb_bclave5.toolTipText")); // NOI18N
                                    jrb_bclave5.setActionCommand(resourceMap.getString("jrb_bclave5.actionCommand")); // NOI18N
                                    jrb_bclave5.setName("jrb_bclave5"); // NOI18N
                                    jrb_bclave5.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bclave5ActionPerformed(evt);
                                        }
                                    });

                                    jScrollPane16.setName("jScrollPane16"); // NOI18N

                                    jtb_catalogo_articulos2.setModel(this.jtable_modelo);
                                    jtb_catalogo_articulos2.setName("jtb_catalogo_articulos2"); // NOI18N
                                    jtb_catalogo_articulos2.setRowHeight(26);
                                    jtb_catalogo_articulos2.addMouseListener(new java.awt.event.MouseAdapter() {
                                        public void mouseClicked(java.awt.event.MouseEvent evt) {
                                            jtb_catalogo_articulos2MouseClicked(evt);
                                            if(evt.getClickCount() >= 1)
                                            {
                                                dioclickpromoverkit(evt);
                                                //System.out.println(" double click" );

                                            }
                                        }
                                    });
                                    jScrollPane16.setViewportView(jtb_catalogo_articulos2);

                                    jLabel23.setFont(resourceMap.getFont("jLabel23.font")); // NOI18N
                                    jLabel23.setText(resourceMap.getString("jLabel23.text")); // NOI18N
                                    jLabel23.setName("jLabel23"); // NOI18N

                                    jtf_registros2.setEditable(false);
                                    jtf_registros2.setFont(resourceMap.getFont("jtf_registros2.font")); // NOI18N
                                    jtf_registros2.setText(resourceMap.getString("jtf_registros2.text")); // NOI18N
                                    jtf_registros2.setName("jtf_registros2"); // NOI18N

                                    jcbx_historialne7.setText(resourceMap.getString("jcbx_historialne7.text")); // NOI18N
                                    jcbx_historialne7.setName("jcbx_historialne7"); // NOI18N
                                    jcbx_historialne7.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jcbx_historialne7ActionPerformed(evt);
                                        }
                                    });

                                    jScrollPane17.setName("jScrollPane17"); // NOI18N

                                    jtb_catalogo_articulos4.setModel(this.jtable_modelop);
                                    jtb_catalogo_articulos4.setName("jtb_catalogo_articulos4"); // NOI18N
                                    jtb_catalogo_articulos4.setRowHeight(26);
                                    jScrollPane17.setViewportView(jtb_catalogo_articulos4);

                                    jbtn_promociondesindi3.setText(resourceMap.getString("jbtn_promociondesindi3.text")); // NOI18N
                                    jbtn_promociondesindi3.setToolTipText(resourceMap.getString("jbtn_promociondesindi3.toolTipText")); // NOI18N
                                    jbtn_promociondesindi3.setName("jbtn_promociondesindi3"); // NOI18N
                                    jbtn_promociondesindi3.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_promociondesindi3ActionPerformed(evt);
                                        }
                                    });

                                    jbtn_promociondesindi4.setIcon(resourceMap.getIcon("jbtn_promociondesindi4.icon")); // NOI18N
                                    jbtn_promociondesindi4.setText(resourceMap.getString("jbtn_promociondesindi4.text")); // NOI18N
                                    jbtn_promociondesindi4.setToolTipText(resourceMap.getString("jbtn_promociondesindi4.toolTipText")); // NOI18N
                                    jbtn_promociondesindi4.setName("jbtn_promociondesindi4"); // NOI18N
                                    jbtn_promociondesindi4.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_promociondesindi4ActionPerformed(evt);
                                        }
                                    });

                                    javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);
                                    jPanel21.setLayout(jPanel21Layout);
                                    jPanel21Layout.setHorizontalGroup(
                                        jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel21Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel21Layout.createSequentialGroup()
                                                    .addComponent(jScrollPane17, javax.swing.GroupLayout.DEFAULT_SIZE, 508, Short.MAX_VALUE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addGroup(jPanel21Layout.createSequentialGroup()
                                                            .addComponent(jtf_registros2, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jLabel23))
                                                        .addComponent(jcbx_historialne7)
                                                        .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                            .addComponent(jbtn_promociondesindi4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                            .addComponent(jbtn_promociondesindi3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                                                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel21Layout.createSequentialGroup()
                                                        .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addGroup(jPanel21Layout.createSequentialGroup()
                                                                .addComponent(jrb_obexacto2)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                .addComponent(jrb_obcomienza2)
                                                                .addGap(1, 1, 1)
                                                                .addComponent(jrb_obaniway2))
                                                            .addGroup(jPanel21Layout.createSequentialGroup()
                                                                .addComponent(jtf_busqueda3, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                .addComponent(jbtn_buscar2)))
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                        .addComponent(jScrollPane15))
                                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel21Layout.createSequentialGroup()
                                                        .addComponent(jrb_bclave5, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addGap(15, 15, 15)
                                                        .addComponent(jrb_bclave4)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                        .addComponent(jrb_bdescrip2)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                        .addComponent(jrb_bitem2)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                        .addComponent(jrb_bidsubfam2)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                        .addComponent(jrb_bidfam2)
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                        .addComponent(jrb_bdessubfam2))))
                                            .addContainerGap())
                                        .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jScrollPane16, javax.swing.GroupLayout.DEFAULT_SIZE, 615, Short.MAX_VALUE))
                                    );
                                    jPanel21Layout.setVerticalGroup(
                                        jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel21Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addGroup(jPanel21Layout.createSequentialGroup()
                                                    .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jrb_obexacto2)
                                                        .addComponent(jrb_obcomienza2)
                                                        .addComponent(jrb_obaniway2))
                                                    .addGap(6, 6, 6)
                                                    .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jtf_busqueda3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jbtn_buscar2)))
                                                .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jrb_bclave4)
                                                .addComponent(jrb_bdescrip2)
                                                .addComponent(jrb_bitem2)
                                                .addComponent(jrb_bidsubfam2)
                                                .addComponent(jrb_bclave5)
                                                .addComponent(jrb_bidfam2)
                                                .addComponent(jrb_bdessubfam2))
                                            .addGap(231, 231, 231)
                                            .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel21Layout.createSequentialGroup()
                                                    .addComponent(jcbx_historialne7)
                                                    .addGap(18, 18, 18)
                                                    .addComponent(jbtn_promociondesindi3)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE)
                                                    .addComponent(jbtn_promociondesindi4)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jtf_registros2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jLabel23)))
                                                .addComponent(jScrollPane17, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)))
                                        .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel21Layout.createSequentialGroup()
                                                .addGap(88, 88, 88)
                                                .addComponent(jScrollPane16, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addContainerGap(137, Short.MAX_VALUE)))
                                    );

                                    jPanel22.setName("jPanel22"); // NOI18N

                                    jScrollPane18.setName("jScrollPane18"); // NOI18N

                                    jtb_catalogo_articulos5.setModel(this.jtable_modelo_pro);
                                    jtb_catalogo_articulos5.setName("jtb_catalogo_articulos5"); // NOI18N
                                    jtb_catalogo_articulos5.setRowHeight(26);
                                    jtb_catalogo_articulos5.addMouseListener(new java.awt.event.MouseAdapter() {
                                        public void mouseClicked(java.awt.event.MouseEvent evt) {
                                            jtb_catalogo_articulos5MouseClicked(evt);
                                            if(evt.getClickCount() >= 1)
                                            {
                                                dioclickpromokit(evt);
                                                //System.out.println(" double click" );

                                            }
                                        }
                                    });
                                    jScrollPane18.setViewportView(jtb_catalogo_articulos5);

                                    jLabel24.setFont(resourceMap.getFont("jLabel24.font")); // NOI18N
                                    jLabel24.setText(resourceMap.getString("jLabel24.text")); // NOI18N
                                    jLabel24.setName("jLabel24"); // NOI18N

                                    jtf_registros3.setEditable(false);
                                    jtf_registros3.setFont(resourceMap.getFont("jtf_registros3.font")); // NOI18N
                                    jtf_registros3.setText(resourceMap.getString("jtf_registros3.text")); // NOI18N
                                    jtf_registros3.setName("jtf_registros3"); // NOI18N

                                    jtf_idproductopromo1.setEditable(false);
                                    jtf_idproductopromo1.setFont(resourceMap.getFont("jtf_idproductopromo1.font")); // NOI18N
                                    jtf_idproductopromo1.setName("jtf_idproductopromo1"); // NOI18N

                                    jbtn_promocionindielimi2.setIcon(resourceMap.getIcon("jbtn_promocionindielimi2.icon")); // NOI18N
                                    jbtn_promocionindielimi2.setText(resourceMap.getString("jbtn_promocionindielimi2.text")); // NOI18N
                                    jbtn_promocionindielimi2.setName("jbtn_promocionindielimi2"); // NOI18N
                                    jbtn_promocionindielimi2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_promocionindielimi2ActionPerformed(evt);
                                        }
                                    });

                                    idfila1.setEditable(false);
                                    idfila1.setText(resourceMap.getString("idfila1.text")); // NOI18N
                                    idfila1.setName("idfila1"); // NOI18N

                                    jcbx_historialne8.setText(resourceMap.getString("jcbx_historialne8.text")); // NOI18N
                                    jcbx_historialne8.setToolTipText(resourceMap.getString("jcbx_historialne8.toolTipText")); // NOI18N
                                    jcbx_historialne8.setName("jcbx_historialne8"); // NOI18N
                                    jcbx_historialne8.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jcbx_historialne8ActionPerformed(evt);
                                        }
                                    });

                                    jbtn_promocionindielimi3.setText(resourceMap.getString("jbtn_promocionindielimi3.text")); // NOI18N
                                    jbtn_promocionindielimi3.setName("jbtn_promocionindielimi3"); // NOI18N
                                    jbtn_promocionindielimi3.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_promocionindielimi3ActionPerformed(evt);
                                        }
                                    });

                                    jtf_idtienda1.setEditable(false);
                                    jtf_idtienda1.setText(resourceMap.getString("jtf_idtienda1.text")); // NOI18N
                                    jtf_idtienda1.setName("jtf_idtienda1"); // NOI18N

                                    jtf_idtiendapro1.setEditable(false);
                                    jtf_idtiendapro1.setText(resourceMap.getString("jtf_idtiendapro1.text")); // NOI18N
                                    jtf_idtiendapro1.setName("jtf_idtiendapro1"); // NOI18N

                                    javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);
                                    jPanel22.setLayout(jPanel22Layout);
                                    jPanel22Layout.setHorizontalGroup(
                                        jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel22Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addComponent(jLabel24)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jtf_registros3, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(43, 43, 43)
                                            .addComponent(idfila1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 43, Short.MAX_VALUE)
                                            .addComponent(jcbx_historialne8)
                                            .addContainerGap())
                                        .addGroup(jPanel22Layout.createSequentialGroup()
                                            .addGap(6, 6, 6)
                                            .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jtf_idproductopromo1, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGroup(jPanel22Layout.createSequentialGroup()
                                                    .addComponent(jtf_idtienda1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jtf_idtiendapro1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                .addComponent(jbtn_promocionindielimi3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jbtn_promocionindielimi2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addGap(11, 11, 11))
                                        .addComponent(jScrollPane18, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 371, Short.MAX_VALUE)
                                    );
                                    jPanel22Layout.setVerticalGroup(
                                        jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel22Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addComponent(jScrollPane18, javax.swing.GroupLayout.PREFERRED_SIZE, 362, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jLabel24)
                                                .addComponent(jtf_registros3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(idfila1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jcbx_historialne8))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                .addComponent(jtf_idproductopromo1)
                                                .addComponent(jbtn_promocionindielimi2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jbtn_promocionindielimi3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jtf_idtienda1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jtf_idtiendapro1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addContainerGap())
                                    );

                                    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
                                    jPanel3.setLayout(jPanel3Layout);
                                    jPanel3Layout.setHorizontalGroup(
                                        jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel3Layout.createSequentialGroup()
                                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel3Layout.createSequentialGroup()
                                                    .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                                                    .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addContainerGap())
                                    );
                                    jPanel3Layout.setVerticalGroup(
                                        jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel3Layout.createSequentialGroup()
                                                    .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                    .addGap(11, 11, 11))
                                                .addGroup(jPanel3Layout.createSequentialGroup()
                                                    .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addContainerGap())))
                                    );

                                    jTabbedPane1.addTab(resourceMap.getString("jPanel3.TabConstraints.tabTitle"), jPanel3); // NOI18N

                                    jPanel8.setName("jPanel8"); // NOI18N

                                    jPanel9.setName("jPanel9"); // NOI18N

                                    jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel12.border.title"))); // NOI18N
                                    jPanel12.setName("jPanel12"); // NOI18N

                                    jScrollPane11.setName("jScrollPane11"); // NOI18N

                                    jtb_distribucionalta2.setModel(this.jtable_modelo_rebfiltro);
                                    jtb_distribucionalta2.setName("jtb_distribucionalta2"); // NOI18N
                                    jtb_distribucionalta2.setRowHeight(22);
                                    jtb_distribucionalta2.addMouseListener(new java.awt.event.MouseAdapter() {
                                        public void mouseClicked(java.awt.event.MouseEvent evt) {
                                            jtb_distribucionalta2MouseClicked(evt);
                                            if(evt.getClickCount() >= 1)
                                            {
                                                dioclickpromoreba(evt);
                                                //System.out.println(" double click" );
                                            }
                                        }
                                    });
                                    jScrollPane11.setViewportView(jtb_distribucionalta2);

                                    buttonGroup3.add(jrbt_rebfilfam);
                                    jrbt_rebfilfam.setText(resourceMap.getString("jrbt_rebfilfam.text")); // NOI18N
                                    jrbt_rebfilfam.setActionCommand(resourceMap.getString("jrbt_rebfilfam.actionCommand")); // NOI18N
                                    jrbt_rebfilfam.setName("jrbt_rebfilfam"); // NOI18N
                                    jrbt_rebfilfam.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrbt_rebfilfamActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup3.add(jrbt_rebfilsub);
                                    jrbt_rebfilsub.setText(resourceMap.getString("jrbt_rebfilsub.text")); // NOI18N
                                    jrbt_rebfilsub.setActionCommand(resourceMap.getString("jrbt_rebfilsub.actionCommand")); // NOI18N
                                    jrbt_rebfilsub.setName("jrbt_rebfilsub"); // NOI18N
                                    jrbt_rebfilsub.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrbt_rebfilsubActionPerformed(evt);
                                        }
                                    });

                                    jbtn_prereb_verifica.setIcon(resourceMap.getIcon("jbtn_prereb_verifica.icon")); // NOI18N
                                    jbtn_prereb_verifica.setText(resourceMap.getString("jbtn_prereb_verifica.text")); // NOI18N
                                    jbtn_prereb_verifica.setToolTipText(resourceMap.getString("jbtn_prereb_verifica.toolTipText")); // NOI18N
                                    jbtn_prereb_verifica.setName("jbtn_prereb_verifica"); // NOI18N
                                    jbtn_prereb_verifica.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_prereb_verificaActionPerformed(evt);
                                        }
                                    });

                                    jcbx_historialne4.setText(resourceMap.getString("jcbx_historialne4.text")); // NOI18N
                                    jcbx_historialne4.setToolTipText(resourceMap.getString("jcbx_historialne4.toolTipText")); // NOI18N
                                    jcbx_historialne4.setName("jcbx_historialne4"); // NOI18N
                                    jcbx_historialne4.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jcbx_historialne4ActionPerformed(evt);
                                        }
                                    });

                                    javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
                                    jPanel12.setLayout(jPanel12Layout);
                                    jPanel12Layout.setHorizontalGroup(
                                        jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel12Layout.createSequentialGroup()
                                            .addComponent(jrbt_rebfilsub)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(jrbt_rebfilfam)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jbtn_prereb_verifica, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(jcbx_historialne4))
                                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 385, Short.MAX_VALUE))
                                    );
                                    jPanel12Layout.setVerticalGroup(
                                        jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel12Layout.createSequentialGroup()
                                            .addContainerGap(180, Short.MAX_VALUE)
                                            .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jrbt_rebfilsub)
                                                .addComponent(jrbt_rebfilfam)
                                                .addComponent(jbtn_prereb_verifica)
                                                .addComponent(jcbx_historialne4)))
                                        .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel12Layout.createSequentialGroup()
                                                .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addContainerGap(34, Short.MAX_VALUE)))
                                    );

                                    jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel10.border.title"))); // NOI18N
                                    jPanel10.setName("jPanel10"); // NOI18N

                                    buttonGroup4.add(jrb_obexacto1);
                                    jrb_obexacto1.setText(resourceMap.getString("jrb_obexacto1.text")); // NOI18N
                                    jrb_obexacto1.setToolTipText(resourceMap.getString("jrb_obexacto1.toolTipText")); // NOI18N
                                    jrb_obexacto1.setActionCommand(resourceMap.getString("jrb_obexacto1.actionCommand")); // NOI18N
                                    jrb_obexacto1.setName("jrb_obexacto1"); // NOI18N
                                    jrb_obexacto1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_obexacto1ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup4.add(jrb_obcomienza1);
                                    jrb_obcomienza1.setText(resourceMap.getString("jrb_obcomienza1.text")); // NOI18N
                                    jrb_obcomienza1.setToolTipText(resourceMap.getString("jrb_obcomienza1.toolTipText")); // NOI18N
                                    jrb_obcomienza1.setActionCommand(resourceMap.getString("jrb_obcomienza1.actionCommand")); // NOI18N
                                    jrb_obcomienza1.setName("jrb_obcomienza1"); // NOI18N
                                    jrb_obcomienza1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_obcomienza1ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup4.add(jrb_obaniway1);
                                    jrb_obaniway1.setText(resourceMap.getString("jrb_obaniway1.text")); // NOI18N
                                    jrb_obaniway1.setToolTipText(resourceMap.getString("jrb_obaniway1.toolTipText")); // NOI18N
                                    jrb_obaniway1.setActionCommand(resourceMap.getString("jrb_obaniway1.actionCommand")); // NOI18N
                                    jrb_obaniway1.setName("jrb_obaniway1"); // NOI18N
                                    jrb_obaniway1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_obaniway1ActionPerformed(evt);
                                        }
                                    });

                                    jtf_busqueda1.setToolTipText(resourceMap.getString("jtf_busqueda1.toolTipText")); // NOI18N
                                    jtf_busqueda1.setName("jtf_busqueda1"); // NOI18N
                                    jtf_busqueda1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_busqueda1ActionPerformed(evt);
                                        }
                                    });

                                    jbtn_buscar1.setIcon(resourceMap.getIcon("jbtn_buscar1.icon")); // NOI18N
                                    jbtn_buscar1.setText(resourceMap.getString("jbtn_buscar1.text")); // NOI18N
                                    jbtn_buscar1.setName("jbtn_buscar1"); // NOI18N
                                    jbtn_buscar1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_buscar1ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup5.add(jrb_bclave2);
                                    jrb_bclave2.setText(resourceMap.getString("jrb_bclave2.text")); // NOI18N
                                    jrb_bclave2.setToolTipText(resourceMap.getString("jrb_bclave2.toolTipText")); // NOI18N
                                    jrb_bclave2.setActionCommand(resourceMap.getString("jrb_bclave2.actionCommand")); // NOI18N
                                    jrb_bclave2.setName("jrb_bclave2"); // NOI18N
                                    jrb_bclave2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bclave2ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup5.add(jrb_bclave3);
                                    jrb_bclave3.setText(resourceMap.getString("jrb_bclave3.text")); // NOI18N
                                    jrb_bclave3.setToolTipText(resourceMap.getString("jrb_bclave3.toolTipText")); // NOI18N
                                    jrb_bclave3.setActionCommand(resourceMap.getString("jrb_bclave3.actionCommand")); // NOI18N
                                    jrb_bclave3.setName("jrb_bclave3"); // NOI18N
                                    jrb_bclave3.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bclave3ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup5.add(jrb_bdescrip1);
                                    jrb_bdescrip1.setText(resourceMap.getString("jrb_bdescrip1.text")); // NOI18N
                                    jrb_bdescrip1.setToolTipText(resourceMap.getString("jrb_bdescrip1.toolTipText")); // NOI18N
                                    jrb_bdescrip1.setActionCommand(resourceMap.getString("jrb_bdescrip1.actionCommand")); // NOI18N
                                    jrb_bdescrip1.setName("jrb_bdescrip1"); // NOI18N
                                    jrb_bdescrip1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bdescrip1ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup5.add(jrb_bitem1);
                                    jrb_bitem1.setText(resourceMap.getString("jrb_bitem1.text")); // NOI18N
                                    jrb_bitem1.setToolTipText(resourceMap.getString("jrb_bitem1.toolTipText")); // NOI18N
                                    jrb_bitem1.setActionCommand(resourceMap.getString("jrb_bitem1.actionCommand")); // NOI18N
                                    jrb_bitem1.setName("jrb_bitem1"); // NOI18N
                                    jrb_bitem1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bitem1ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup5.add(jrb_bidsubfam1);
                                    jrb_bidsubfam1.setText(resourceMap.getString("jrb_bidsubfam1.text")); // NOI18N
                                    jrb_bidsubfam1.setToolTipText(resourceMap.getString("jrb_bidsubfam1.toolTipText")); // NOI18N
                                    jrb_bidsubfam1.setActionCommand(resourceMap.getString("jrb_bidsubfam1.actionCommand")); // NOI18N
                                    jrb_bidsubfam1.setName("jrb_bidsubfam1"); // NOI18N
                                    jrb_bidsubfam1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bidsubfam1ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup5.add(jrb_bidfam1);
                                    jrb_bidfam1.setText(resourceMap.getString("jrb_bidfam1.text")); // NOI18N
                                    jrb_bidfam1.setToolTipText(resourceMap.getString("jrb_bidfam1.toolTipText")); // NOI18N
                                    jrb_bidfam1.setActionCommand(resourceMap.getString("jrb_bidfam1.actionCommand")); // NOI18N
                                    jrb_bidfam1.setName("jrb_bidfam1"); // NOI18N
                                    jrb_bidfam1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bidfam1ActionPerformed(evt);
                                        }
                                    });

                                    buttonGroup5.add(jrb_bdessubfam1);
                                    jrb_bdessubfam1.setText(resourceMap.getString("jrb_bdessubfam1.text")); // NOI18N
                                    jrb_bdessubfam1.setToolTipText(resourceMap.getString("jrb_bdessubfam1.toolTipText")); // NOI18N
                                    jrb_bdessubfam1.setActionCommand(resourceMap.getString("jrb_bdessubfam1.actionCommand")); // NOI18N
                                    jrb_bdessubfam1.setName("jrb_bdessubfam1"); // NOI18N
                                    jrb_bdessubfam1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jrb_bdessubfam1ActionPerformed(evt);
                                        }
                                    });

                                    jScrollPane5.setName("jScrollPane5"); // NOI18N

                                    jta_archivo1.setColumns(20);
                                    jta_archivo1.setRows(5);
                                    jta_archivo1.setName("jta_archivo1"); // NOI18N
                                    jScrollPane5.setViewportView(jta_archivo1);

                                    jtf_rebidfila1.setEditable(false);
                                    jtf_rebidfila1.setText(resourceMap.getString("jtf_rebidfila1.text")); // NOI18N
                                    jtf_rebidfila1.setName("jtf_rebidfila1"); // NOI18N

                                    jtf_rebidfila.setEditable(false);
                                    jtf_rebidfila.setText(resourceMap.getString("jtf_rebidfila.text")); // NOI18N
                                    jtf_rebidfila.setName("jtf_rebidfila"); // NOI18N

                                    javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
                                    jPanel10.setLayout(jPanel10Layout);
                                    jPanel10Layout.setHorizontalGroup(
                                        jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel10Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel10Layout.createSequentialGroup()
                                                    .addComponent(jrb_bclave2, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(15, 15, 15)
                                                    .addComponent(jrb_bclave3)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jrb_bdescrip1)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jrb_bitem1)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jrb_bidsubfam1)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jrb_bidfam1)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jrb_bdessubfam1)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jtf_rebidfila1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(jPanel10Layout.createSequentialGroup()
                                                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                        .addGroup(jPanel10Layout.createSequentialGroup()
                                                            .addComponent(jrb_obexacto1)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jrb_obcomienza1)
                                                            .addGap(1, 1, 1)
                                                            .addComponent(jrb_obaniway1)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                            .addComponent(jtf_rebidfila, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                        .addGroup(jPanel10Layout.createSequentialGroup()
                                                            .addComponent(jtf_busqueda1, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jbtn_buscar1)))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE)))
                                            .addContainerGap())
                                    );
                                    jPanel10Layout.setVerticalGroup(
                                        jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel10Layout.createSequentialGroup()
                                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel10Layout.createSequentialGroup()
                                                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jrb_obexacto1)
                                                        .addComponent(jrb_obcomienza1)
                                                        .addComponent(jrb_obaniway1)
                                                        .addComponent(jtf_rebidfila, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jtf_busqueda1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jbtn_buscar1)))
                                                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jrb_bclave3)
                                                .addComponent(jrb_bdescrip1)
                                                .addComponent(jrb_bitem1)
                                                .addComponent(jrb_bidsubfam1)
                                                .addComponent(jrb_bclave2)
                                                .addComponent(jrb_bidfam1)
                                                .addComponent(jrb_bdessubfam1)
                                                .addComponent(jtf_rebidfila1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    );

                                    jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel13.border.title"))); // NOI18N
                                    jPanel13.setName("jPanel13"); // NOI18N

                                    jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
                                    jLabel8.setName("jLabel8"); // NOI18N

                                    jtf_describe1.setToolTipText(resourceMap.getString("jtf_describe1.toolTipText")); // NOI18N
                                    jtf_describe1.setName("jtf_describe1"); // NOI18N
                                    jtf_describe1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_describe1ActionPerformed(evt);
                                        }
                                    });

                                    jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
                                    jLabel9.setName("jLabel9"); // NOI18N

                                    jdc_rangoini1.setDateFormatString(resourceMap.getString("jdc_rangoini1.dateFormatString")); // NOI18N
                                    jdc_rangoini1.setEnabled(false);
                                    jdc_rangoini1.setName("jdc_rangoini1"); // NOI18N

                                    jbtn_guardasolicitud1.setIcon(resourceMap.getIcon("jbtn_guardasolicitud1.icon")); // NOI18N
                                    jbtn_guardasolicitud1.setText(resourceMap.getString("jbtn_guardasolicitud1.text")); // NOI18N
                                    jbtn_guardasolicitud1.setToolTipText(resourceMap.getString("jbtn_guardasolicitud1.toolTipText")); // NOI18N
                                    jbtn_guardasolicitud1.setName("jbtn_guardasolicitud1"); // NOI18N
                                    jbtn_guardasolicitud1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_guardasolicitud1ActionPerformed(evt);
                                        }
                                    });

                                    jtf_iddocto1.setEditable(false);
                                    jtf_iddocto1.setText(resourceMap.getString("jtf_iddocto1.text")); // NOI18N
                                    jtf_iddocto1.setName("jtf_iddocto1"); // NOI18N

                                    jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
                                    jLabel12.setName("jLabel12"); // NOI18N

                                    jtf_observaindica1.setName("jtf_observaindica1"); // NOI18N
                                    jtf_observaindica1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_observaindica1ActionPerformed(evt);
                                        }
                                    });

                                    javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
                                    jPanel13.setLayout(jPanel13Layout);
                                    jPanel13Layout.setHorizontalGroup(
                                        jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel13Layout.createSequentialGroup()
                                            .addGap(4, 4, 4)
                                            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addGroup(jPanel13Layout.createSequentialGroup()
                                                    .addComponent(jLabel12)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jtf_observaindica1, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 231, Short.MAX_VALUE)
                                                    .addComponent(jtf_iddocto1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(jPanel13Layout.createSequentialGroup()
                                                    .addComponent(jLabel8)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jtf_describe1, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jLabel9)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jdc_rangoini1, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jbtn_guardasolicitud1, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addContainerGap(19, Short.MAX_VALUE))
                                    );
                                    jPanel13Layout.setVerticalGroup(
                                        jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel13Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel13Layout.createSequentialGroup()
                                                    .addGap(1, 1, 1)
                                                    .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jtf_describe1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addComponent(jLabel8)))
                                                .addComponent(jLabel9)
                                                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                    .addComponent(jbtn_guardasolicitud1)
                                                    .addComponent(jdc_rangoini1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel13Layout.createSequentialGroup()
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)
                                                    .addComponent(jtf_iddocto1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(jPanel13Layout.createSequentialGroup()
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                        .addComponent(jLabel12)
                                                        .addComponent(jtf_observaindica1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addContainerGap())))
                                    );

                                    javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
                                    jPanel9.setLayout(jPanel9Layout);
                                    jPanel9Layout.setHorizontalGroup(
                                        jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                                            .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel9Layout.createSequentialGroup()
                                                    .addContainerGap()
                                                    .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                                .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    );
                                    jPanel9Layout.setVerticalGroup(
                                        jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                                            .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addComponent(jPanel12, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    );

                                    jPanel11.setName("jPanel11"); // NOI18N

                                    jScrollPane3.setName("jScrollPane3"); // NOI18N

                                    jtb_catalogo_artiexis.setModel(this.jtable_modelo_existencias);
                                    jtb_catalogo_artiexis.setName("jtb_catalogo_artiexis"); // NOI18N
                                    jtb_catalogo_artiexis.setRowHeight(26);
                                    jtb_catalogo_artiexis.addMouseListener(new java.awt.event.MouseAdapter() {
                                        public void mouseClicked(java.awt.event.MouseEvent evt) {
                                            jtb_catalogo_artiexisMouseClicked(evt);
                                            if(evt.getClickCount() >= 1)
                                            {
                                                dioclickreb(evt);
                                                //System.out.println(" double click" );

                                            }
                                        }
                                    });
                                    jScrollPane3.setViewportView(jtb_catalogo_artiexis);

                                    jPanel15.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel15.border.title"))); // NOI18N
                                    jPanel15.setName("jPanel15"); // NOI18N

                                    jScrollPane12.setName("jScrollPane12"); // NOI18N

                                    jtb_distribucionalta3.setModel(this.jtable_modelo_tiendaprecios);
                                    jtb_distribucionalta3.setName("jtb_distribucionalta3"); // NOI18N
                                    jtb_distribucionalta3.setRowHeight(22);
                                    jtb_distribucionalta3.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
                                        public void propertyChange(java.beans.PropertyChangeEvent evt) {
                                            jtb_distribucionalta3PropertyChange(evt);
                                        }
                                    });
                                    jtb_distribucionalta3.addKeyListener(new java.awt.event.KeyAdapter() {
                                        public void keyPressed(java.awt.event.KeyEvent evt) {
                                            jtb_distribucionalta3KeyPressed(evt);
                                        }
                                    });
                                    jScrollPane12.setViewportView(jtb_distribucionalta3);

                                    javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
                                    jPanel15.setLayout(jPanel15Layout);
                                    jPanel15Layout.setHorizontalGroup(
                                        jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 505, Short.MAX_VALUE)
                                    );
                                    jPanel15Layout.setVerticalGroup(
                                        jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)
                                    );

                                    jPanel16.setName("jPanel16"); // NOI18N

                                    jtf_rebajaidt1.setEditable(false);
                                    jtf_rebajaidt1.setFont(resourceMap.getFont("jtf_rebajaidt1.font")); // NOI18N
                                    jtf_rebajaidt1.setName("jtf_rebajaidt1"); // NOI18N

                                    jtf_rebajaidt.setEditable(false);
                                    jtf_rebajaidt.setFont(resourceMap.getFont("jtf_rebajaidt.font")); // NOI18N
                                    jtf_rebajaidt.setText(resourceMap.getString("jtf_rebajaidt.text")); // NOI18N
                                    jtf_rebajaidt.setName("jtf_rebajaidt"); // NOI18N

                                    jtf_rebajacodigo.setEditable(false);
                                    jtf_rebajacodigo.setFont(resourceMap.getFont("jtf_rebajacodigo.font")); // NOI18N
                                    jtf_rebajacodigo.setText(resourceMap.getString("jtf_rebajacodigo.text")); // NOI18N
                                    jtf_rebajacodigo.setName("jtf_rebajacodigo"); // NOI18N

                                    jtf_rebajadescrip.setEditable(false);
                                    jtf_rebajadescrip.setName("jtf_rebajadescrip"); // NOI18N

                                    jButton6.setIcon(resourceMap.getIcon("jButton6.icon")); // NOI18N
                                    jButton6.setText(resourceMap.getString("jButton6.text")); // NOI18N
                                    jButton6.setName("jButton6"); // NOI18N
                                    jButton6.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jButton6ActionPerformed(evt);
                                        }
                                    });

                                    jtf_rebaprecio.setFont(resourceMap.getFont("jtf_rebaprecio.font")); // NOI18N
                                    jtf_rebaprecio.setText(resourceMap.getString("jtf_rebaprecio.text")); // NOI18N
                                    jtf_rebaprecio.setToolTipText(resourceMap.getString("jtf_rebaprecio.toolTipText")); // NOI18N
                                    jtf_rebaprecio.setName("jtf_rebaprecio"); // NOI18N

                                    jLabel6.setFont(resourceMap.getFont("jLabel6.font")); // NOI18N
                                    jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
                                    jLabel6.setName("jLabel6"); // NOI18N

                                    jButton7.setIcon(resourceMap.getIcon("jButton7.icon")); // NOI18N
                                    jButton7.setText(resourceMap.getString("jButton7.text")); // NOI18N
                                    jButton7.setName("jButton7"); // NOI18N
                                    jButton7.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jButton7ActionPerformed(evt);
                                        }
                                    });

                                    jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
                                    jLabel2.setName("jLabel2"); // NOI18N

                                    jtf_busqueda2.setFont(resourceMap.getFont("jtf_busqueda2.font")); // NOI18N
                                    jtf_busqueda2.setText(resourceMap.getString("jtf_busqueda2.text")); // NOI18N
                                    jtf_busqueda2.setToolTipText(resourceMap.getString("jtf_busqueda2.toolTipText")); // NOI18N
                                    jtf_busqueda2.setName("jtf_busqueda2"); // NOI18N
                                    jtf_busqueda2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jtf_busqueda2ActionPerformed(evt);
                                        }
                                    });

                                    jButton4.setIcon(resourceMap.getIcon("jButton4.icon")); // NOI18N
                                    jButton4.setText(resourceMap.getString("jButton4.text")); // NOI18N
                                    jButton4.setToolTipText(resourceMap.getString("jButton4.toolTipText")); // NOI18N
                                    jButton4.setName("jButton4"); // NOI18N
                                    jButton4.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jButton4ActionPerformed(evt);
                                        }
                                    });

                                    jButton3.setIcon(resourceMap.getIcon("jButton3.icon")); // NOI18N
                                    jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N
                                    jButton3.setToolTipText(resourceMap.getString("jButton3.toolTipText")); // NOI18N
                                    jButton3.setName("jButton3"); // NOI18N
                                    jButton3.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jButton3ActionPerformed(evt);
                                        }
                                    });

                                    jbtn_eliminareb.setIcon(resourceMap.getIcon("jbtn_eliminareb.icon")); // NOI18N
                                    jbtn_eliminareb.setText(resourceMap.getString("jbtn_eliminareb.text")); // NOI18N
                                    jbtn_eliminareb.setName("jbtn_eliminareb"); // NOI18N
                                    jbtn_eliminareb.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_eliminarebActionPerformed(evt);
                                        }
                                    });

                                    jbtn_eliminareball.setIcon(resourceMap.getIcon("jbtn_eliminareball.icon")); // NOI18N
                                    jbtn_eliminareball.setText(resourceMap.getString("jbtn_eliminareball.text")); // NOI18N
                                    jbtn_eliminareball.setToolTipText(resourceMap.getString("jbtn_eliminareball.toolTipText")); // NOI18N
                                    jbtn_eliminareball.setName("jbtn_eliminareball"); // NOI18N
                                    jbtn_eliminareball.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jbtn_eliminareballActionPerformed(evt);
                                        }
                                    });

                                    jtf_rebidtiendaactual.setEditable(false);
                                    jtf_rebidtiendaactual.setText(resourceMap.getString("jtf_rebidtiendaactual.text")); // NOI18N
                                    jtf_rebidtiendaactual.setName("jtf_rebidtiendaactual"); // NOI18N

                                    javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
                                    jPanel16.setLayout(jPanel16Layout);
                                    jPanel16Layout.setHorizontalGroup(
                                        jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel16Layout.createSequentialGroup()
                                            .addContainerGap()
                                            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel16Layout.createSequentialGroup()
                                                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(jtf_rebajadescrip, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel16Layout.createSequentialGroup()
                                                                .addComponent(jtf_rebajaidt, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                .addComponent(jtf_rebajaidt1))
                                                            .addComponent(jtf_rebajacodigo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addComponent(jtf_rebidtiendaactual, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()
                                                            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                                .addComponent(jbtn_eliminareball, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 155, Short.MAX_VALUE)
                                                                .addComponent(jbtn_eliminareb, javax.swing.GroupLayout.DEFAULT_SIZE, 155, Short.MAX_VALUE))
                                                            .addContainerGap())))
                                                .addGroup(jPanel16Layout.createSequentialGroup()
                                                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                        .addGroup(jPanel16Layout.createSequentialGroup()
                                                            .addComponent(jLabel6)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jtf_rebaprecio, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                            .addComponent(jLabel2))
                                                        .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                        .addGroup(jPanel16Layout.createSequentialGroup()
                                                            .addComponent(jtf_busqueda2, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(jButton4))
                                                        .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                                    .addContainerGap(14, Short.MAX_VALUE))))
                                    );
                                    jPanel16Layout.setVerticalGroup(
                                        jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel16Layout.createSequentialGroup()
                                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jtf_rebajaidt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jtf_rebajaidt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jbtn_eliminareb))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jtf_rebajacodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jbtn_eliminareball))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jtf_rebajadescrip, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jtf_rebidtiendaactual, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jLabel6)
                                                .addComponent(jtf_rebaprecio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jButton6)
                                                .addComponent(jLabel2)
                                                .addComponent(jtf_busqueda2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jButton4))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                .addComponent(jButton7)
                                                .addComponent(jButton3)))
                                    );

                                    javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
                                    jPanel11.setLayout(jPanel11Layout);
                                    jPanel11Layout.setHorizontalGroup(
                                        jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel11Layout.createSequentialGroup()
                                            .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addGroup(jPanel11Layout.createSequentialGroup()
                                                    .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                .addGroup(jPanel11Layout.createSequentialGroup()
                                                    .addGap(10, 10, 10)
                                                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 1001, Short.MAX_VALUE)))
                                            .addContainerGap())
                                    );
                                    jPanel11Layout.setVerticalGroup(
                                        jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addContainerGap())
                                    );

                                    javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
                                    jPanel8.setLayout(jPanel8Layout);
                                    jPanel8Layout.setHorizontalGroup(
                                        jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel8Layout.createSequentialGroup()
                                            .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(jPanel11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jPanel9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addContainerGap())
                                    );
                                    jPanel8Layout.setVerticalGroup(
                                        jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanel8Layout.createSequentialGroup()
                                            .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addContainerGap())
                                    );

                                    jTabbedPane1.addTab(resourceMap.getString("jPanel8.TabConstraints.tabTitle"), jPanel8); // NOI18N

                                    jMenuBar1.setName("jMenuBar1"); // NOI18N

                                    jMenu1.setText(resourceMap.getString("jMenu1.text")); // NOI18N
                                    jMenu1.setName("jMenu1"); // NOI18N

                                    jmni_export.setText(resourceMap.getString("jmni_export.text")); // NOI18N
                                    jmni_export.setName("jmni_export"); // NOI18N
                                    jmni_export.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jmni_exportActionPerformed(evt);
                                        }
                                    });
                                    jMenu1.add(jmni_export);

                                    jmni_salir.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));
                                    jmni_salir.setText(resourceMap.getString("jmni_salir.text")); // NOI18N
                                    jmni_salir.setName("jmni_salir"); // NOI18N
                                    jmni_salir.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jmni_salirActionPerformed(evt);
                                        }
                                    });
                                    jMenu1.add(jmni_salir);

                                    jMenuBar1.add(jMenu1);

                                    jMenu2.setText(resourceMap.getString("jMenu2.text")); // NOI18N
                                    jMenu2.setName("jMenu2"); // NOI18N

                                    jmni_escape.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0));
                                    jmni_escape.setText(resourceMap.getString("jmni_escape.text")); // NOI18N
                                    jmni_escape.setName("jmni_escape"); // NOI18N
                                    jmni_escape.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jmni_escapeActionPerformed(evt);
                                        }
                                    });
                                    jMenu2.add(jmni_escape);

                                    jmni_importaid.setText(resourceMap.getString("jmni_importaid.text")); // NOI18N
                                    jmni_importaid.setName("jmni_importaid"); // NOI18N
                                    jmni_importaid.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jmni_importaidActionPerformed(evt);
                                        }
                                    });
                                    jMenu2.add(jmni_importaid);

                                    jmni_importarclave.setText(resourceMap.getString("jmni_importarclave.text")); // NOI18N
                                    jmni_importarclave.setName("jmni_importarclave"); // NOI18N
                                    jmni_importarclave.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jmni_importarclaveActionPerformed(evt);
                                        }
                                    });
                                    jMenu2.add(jmni_importarclave);

                                    jmni_importacsv.setText(resourceMap.getString("jmni_importacsv.text")); // NOI18N
                                    jmni_importacsv.setName("jmni_importacsv"); // NOI18N
                                    jmni_importacsv.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jmni_importacsvActionPerformed(evt);
                                        }
                                    });
                                    jMenu2.add(jmni_importacsv);

                                    jMenuItem1.setText(resourceMap.getString("jMenuItem1.text")); // NOI18N
                                    jMenuItem1.setName("jMenuItem1"); // NOI18N
                                    jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jMenuItem1ActionPerformed(evt);
                                        }
                                    });
                                    jMenu2.add(jMenuItem1);

                                    jMenuItem2.setText(resourceMap.getString("jMenuItem2.text")); // NOI18N
                                    jMenuItem2.setName("jMenuItem2"); // NOI18N
                                    jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
                                        public void actionPerformed(java.awt.event.ActionEvent evt) {
                                            jMenuItem2ActionPerformed(evt);
                                        }
                                    });
                                    jMenu2.add(jMenuItem2);

                                    jMenuBar1.add(jMenu2);

                                    jMenu3.setText(resourceMap.getString("jMenu3.text")); // NOI18N
                                    jMenu3.setName("jMenu3"); // NOI18N
                                    jMenuBar1.add(jMenu3);

                                    setJMenuBar(jMenuBar1);

                                    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
                                    getContentPane().setLayout(layout);
                                    layout.setHorizontalGroup(
                                        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(layout.createSequentialGroup()
                                            .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1023, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    );
                                    layout.setVerticalGroup(
                                        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 675, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    );

                                    pack();
                                }// </editor-fold>//GEN-END:initComponents

    private void jbtn_guardasolicitudActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_guardasolicitudActionPerformed
        // TODO add your handling code here:
        String texto="",idt="",idtb="";
      if(this.jcbx_confirma.isSelected()==true)
        {
           int fo=Integer.valueOf(this.jtf_iddocto.getText());
            if(fo==0)
                {

                    int i=0;
                    if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Guardar Promocion."+this.jtf_describe.getText().toUpperCase().trim()+"<br>% Promocion:"+this.jtf_promocan.getText()+"<br>Fecha:"+this.fechaeuropea(this.jdc_rangoini.getDate())+" A "+this.fechaeuropea(this.jdc_rangofinal.getDate())+"<br> Estan correcto sus Datos?</b></h2></html>")==0)
                        {
                            for(int ii=0;ii<this.jtable_modelo_tiendas.getRowCount();ii++)
                                {
                                    texto="select * from x1sieuno_articulo_promociones_insencabezado(0,"+this.jtable_modelo_tiendas.getValueAt(ii, 0).toString()+","+this.jtf_iddocto.getText()+",'"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(this.jtable_modelo_tiendas.getValueAt(ii, 2).toString())+"','"+this.fechaamericana(this.jtable_modelo_tiendas.getValueAt(ii, 3).toString())+"','"+this.jtf_describe.getText()+"','"+this.jtf_observaindica.getText()+"','2','"+variables_global.getId_empleado()+"','','"+this.jtf_promocan.getText()+"',0,0,0,0)";
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                this.jtf_iddocto.setText(rs.getString(1));
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                }

                        }//fin del if qu confirmo guardar diferencia
                            texto="select * from x1sieuno_articulo_promociones_catalogov2(6,'"+this.jtf_iddocto.getText()+"') as (id integer,iddoc integer,idesquema integer,idpromcat integer,idpromodet integer)";
                            try
                                {
                                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                        while (rs.next())
                                                {
                                                    idtb=rs.getString("idesquema").toString();
                                                    for(i=0;i<this.jtable_modelo_tiendas.getRowCount();i++)
                                                        {
                                                            idt = jtable_modelo_tiendas.getValueAt(i, 0).toString();
                                                            if(idt.equals(idtb))
                                                                {
                                                                    jtable_modelo_tiendas.setValueAt(rs.getString("idpromcat"),i,5);
                                                                    jtable_modelo_tiendas.setValueAt(rs.getString("idpromodet"),i,6);
                                                                }
                                                        }

                                                }
                                }
                                catch(Exception e)
                                    {
                                        System.out.println(e.getMessage());
                                    }
                }
            
            
            else
                {
                    if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Actualizar Promocion."+this.jtf_describe.getText().toUpperCase().trim()+"<br>% Promocion:"+this.jtf_promocan.getText()+"<br>Fecha:"+this.fechaeuropea(this.jdc_rangoini.getDate())+" A "+this.fechaeuropea(this.jdc_rangofinal.getDate())+"<br> Estan correcto sus Datos?</b></h2></html>")==0)
                        {

                            texto="select * from x1sieuno_articulo_promociones_insencabezado(1,0,"+this.jtf_iddocto.getText()+",'"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(this.jdc_rangoini.getDate())+"','"+this.fechaamericana(this.jdc_rangofinal.getDate())+"','"+this.jtf_describe.getText()+"','"+this.jtf_observaindica.getText()+"','2','"+variables_global.getId_empleado()+"','','"+this.jtf_promocan.getText()+"',0,0,0,0)";
                            System.out.println(texto);
                            try
                                {
                                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                while (rs.next())
                                    {
                                        //resul=rs.getString(1);
                                    }
                                }
                            catch(Exception e)
                                    {
                                        System.out.println(e.getMessage());
                                    }
                        //se inicia el ciclo para actualizar las promociones
                            for(int ii=0;ii<this.jtable_modelo_tiendas.getRowCount();ii++)
                                {

                                    texto="select * from x1sieuno_articulo_promociones_insertv4(2,"+this.jtable_modelo_tiendas.getValueAt(ii, 0).toString()+","+this.jtf_iddocto.getText()+",'"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(this.jtable_modelo_tiendas.getValueAt(ii, 2).toString())+"','"+this.fechaamericana(this.jtable_modelo_tiendas.getValueAt(ii, 3).toString())+"','"+this.jtf_describe.getText()+"','"+this.jtf_observaindica.getText()+"','2','"+variables_global.getId_empleado()+"','','"+this.jtable_modelo_tiendas.getValueAt(ii, 4).toString()+"',"+this.jtable_modelo_tiendas.getValueAt(ii, 5).toString()+","+this.jtable_modelo_tiendas.getValueAt(ii, 6).toString()+")";
                                    System.out.println(texto);
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                this.jtf_iddocto.setText(rs.getString(1));
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                }
                            this.cargar_datos_promotiendas(this.jtf_iddocto.getText());
                            this.carga_datos_promociones(3,this.jtf_iddocto.getText());
                            this.carga_datos_promociones_detalle();
                        }//fin del if qu confirmo guardar diferencia
                }
            }
        else
                {
                    JOptionPane.showMessageDialog(null,"Seleccione la opcion que indica que a verificado las tiendas!!", "Sistema Integral(Promociones) : Ayuda",1);
                }
}//GEN-LAST:event_jbtn_guardasolicitudActionPerformed

    private void jtb_distribucionaltaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jtb_distribucionaltaPropertyChange
        // TODO add your handling code here:
       
}//GEN-LAST:event_jtb_distribucionaltaPropertyChange

    private void jtb_distribucionaltaKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtb_distribucionaltaKeyPressed
        // TODO add your handling code here:
}//GEN-LAST:event_jtb_distribucionaltaKeyPressed

    private void jmni_salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_salirActionPerformed
        // TODO add your handling code here:
        if(JOptionPane.showConfirmDialog(null, "Desea Salir?")==0)
        {
            this.dispose();
        }
}//GEN-LAST:event_jmni_salirActionPerformed

    private void jmni_escapeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_escapeActionPerformed
        // TODO add your handling code here:
        this.jmni_salirActionPerformed(evt);
    }//GEN-LAST:event_jmni_escapeActionPerformed

    private void jbtn_agregartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_agregartActionPerformed
        // TODO add your handling code here:
        String codigoint="",id[]=null;
        int encontrado=0;
         for(int j=0;j<elementosmodelo;j++)
            {
               id=this.jlst_clientesdistribucion.getModel().getElementAt(j).toString().split(":");
               encontrado=0;
                for(int ii=0;ii<this.jtable_modelo_tiendas.getRowCount();ii++)
                    {
                        codigoint=jtable_modelo_tiendas.getValueAt(ii, 0).toString();
                        if(id[0].equals(codigoint))
                            {
                                encontrado=1;
                                jtable_modelo_tiendas.setValueAt(this.fechaeuropea(this.jdc_rangoini.getDate()), ii, 2);
                                jtable_modelo_tiendas.setValueAt(this.fechaeuropea(this.jdc_rangofinal.getDate()), ii, 3);
                                jtable_modelo_tiendas.setValueAt(this.jtf_promocan.getText(), ii, 4);
                            }
                    }
                if(encontrado==0)
                    {
                        this.jtable_modelo_tiendas.addRow(new Object[]{id[0],id[1],this.fechaeuropea(this.jdc_rangoini.getDate()),this.fechaeuropea(this.jdc_rangofinal.getDate()),this.jtf_promocan.getText(),"0","0"});
                    }
                else
                    {
                    JOptionPane.showMessageDialog(null,"<html><h2><b>Tienda "+id[1]+" Ya Existe! solo se Actualiza fecha Promocion</b></h2></html>", "Sistema Integral(Alta Promocion) : Error",1);
                    }
         }
}//GEN-LAST:event_jbtn_agregartActionPerformed

    private void jtf_describeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_describeActionPerformed
        // TODO add your handling code here:
        this.jtf_observaindica.selectAll();
        this.jtf_observaindica.requestFocus();
    }//GEN-LAST:event_jtf_describeActionPerformed

    private void jcbx_historialne1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_historialne1ActionPerformed
        // TODO add your handling code here:
        int fo=Integer.valueOf(this.jtf_iddocto.getText());
        if(fo==0)
        {
        int fila = jtb_distribucionalta.getSelectedRow();
        jtable_modelo_tiendas.removeRow(fila);
        }
        else
        {
           JOptionPane.showMessageDialog(null," su Promocion ya a sido Guarda, cambie a una fecha pasada para desahabilitar la promocion", "Sistema Integral(Promociones) : Error",1);
        }
}//GEN-LAST:event_jcbx_historialne1ActionPerformed

    private void jcbx_confirmaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_confirmaActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jcbx_confirmaActionPerformed

    private void jtf_promocanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_promocanActionPerformed
        // TODO add your handling code here:
        this.jtf_describe.selectAll();
        this.jtf_describe.requestFocus();
    }//GEN-LAST:event_jtf_promocanActionPerformed

    private void jrb_bclaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bclaveActionPerformed
        // TODO add your handling code here:

        buscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_bclaveActionPerformed

    private void jrb_bdescripActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bdescripActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_bdescripActionPerformed

    private void jtf_busquedaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_busquedaActionPerformed
        // TODO add your handling code here:
        this.jbtn_buscarActionPerformed(evt);
}//GEN-LAST:event_jtf_busquedaActionPerformed

    private void jbtn_buscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_buscarActionPerformed
        // TODO add your handling code here:
        // this.jtf_busqueda.getText();
if(this.jtf_busqueda.getText().length()>0)
            {
        if(JOptionPane.showConfirmDialog(null, "Estan Correctos sus Datos?")==0)
                {
                    this.executabusqueda(buscamp,opbuscamp,this.jtf_busqueda.getText().trim().toUpperCase());
                }
            else
                {
                    this.jtf_busqueda.requestFocus();
                }
        }
    }//GEN-LAST:event_jbtn_buscarActionPerformed

    private void jrb_bitemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bitemActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_bitemActionPerformed

    private void jrb_obexactoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_obexactoActionPerformed
        // TODO add your handling code here:
        opbuscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_obexactoActionPerformed

    private void jrb_obcomienzaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_obcomienzaActionPerformed
        // TODO add your handling code here:
        opbuscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_obcomienzaActionPerformed

    private void jrb_obaniwayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_obaniwayActionPerformed
        // TODO add your handling code here:
        opbuscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_obaniwayActionPerformed

    private void jrb_bidfamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bidfamActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_bidfamActionPerformed

    private void jrb_bidsubfamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bidsubfamActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_bidsubfamActionPerformed

    private void jrb_bdessubfamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bdessubfamActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_bdessubfamActionPerformed

    private void jrb_bclave1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bclave1ActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
}//GEN-LAST:event_jrb_bclave1ActionPerformed

    private void jbtn_promociondesindiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_promociondesindiActionPerformed
        // TODO add your handling code here:
 int fo=Integer.valueOf(this.jtf_iddocto.getText());
        if(fo>0)
        {
        String texto="",resul="";
        int i=0;
        if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Agregar "+this.jtf_registros.getText().toUpperCase().trim()+" Articulos?</b></h2></html>")==0)
            {

             String selectin="";
                        for(int ii=0;ii<this.jtable_modelo.getRowCount();ii++)
                            {
                                if (ii>0)
                                    {
                                        selectin+=".";
                                    }
                                selectin+=""+jtable_modelo.getValueAt(ii ,2)+"";
                            }

            texto="select * from x1sieuno_articulo_promociones_insertv5(1,0,'"+selectin+"','0','0','"+this.jtf_iddocto.getText()+"')";
            System.out.println(texto);
            try
                {
                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                    while (rs.next())
                        {
                        resul=rs.getString(1);
                        }
                }
                catch(Exception e)
                    {
                        System.out.println(e.getMessage());
                    }



            for(int ii=0;ii<this.jtable_modelo_tiendas.getRowCount();ii++)
                {
                    texto="select * from x1sieuno_articulo_promociones_insertv5(2,"+this.jtable_modelo_tiendas.getValueAt(ii, 0).toString()+",'"+selectin+"','"+this.jtable_modelo_tiendas.getValueAt(ii, 5).toString()+"','"+this.jtable_modelo_tiendas.getValueAt(ii, 6).toString()+"','"+this.jtf_iddocto.getText()+"')";
                    System.out.println(texto);
                        try
                        {
                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                        while (rs.next())
                            {
                                resul=rs.getString(1);
                            }
                        } catch(Exception e)
                            {
                                System.out.println(e.getMessage());
                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                            }
                }

            while(jtable_modelo.getRowCount()>0)jtable_modelo.removeRow(0);
            while(jtable_modelo_pro.getRowCount()>0)jtable_modelo_pro.removeRow(0);

            //this.carga_datos_detalle(2, this.jtf_iddocto.getText());
            }//fin del if qu confirmo guardar diferencia
            }
  else
        {
           JOptionPane.showMessageDialog(null,"Primero Guarde su Promocion para agregar Articulos", "Sistema Integral(Promociones) : Error",1);
        }
}//GEN-LAST:event_jbtn_promociondesindiActionPerformed

    private void jcbx_historialne2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_historialne2ActionPerformed
        // TODO add your handling code here:
        int fila = jtb_catalogo_articulos.getSelectedRow();
        jtable_modelo.removeRow(fila);
         this.jtf_registros.setText(String.valueOf(this.jtable_modelo.getRowCount()));
    }//GEN-LAST:event_jcbx_historialne2ActionPerformed

    private void jbtn_promocionindielimiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_promocionindielimiActionPerformed
        // TODO add your handling code here:

        String texto="",resul="";
        int i=0;
        if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Eliminar "+this.jtf_idproductopromo.getText().toUpperCase().trim()+"?</b></h2></html>")==0)
            {
   String selectin="";
                        for(int ii=0;ii<this.jtable_modelo.getRowCount();ii++)
                            {
                                if (ii>0)
                                    {
                                        selectin+=".";
                                    }
                                selectin+=""+jtable_modelo.getValueAt(ii ,2)+"";
                            }

            texto="select * from x1sieuno_articulo_promociones_insertv5(4,0,'"+selectin+"','0','0','"+this.jtf_iddocto.getText()+"')";
            System.out.println(texto);
            try
                {
                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                    while (rs.next())
                        {
                        resul=rs.getString(1);
                        }
                }
                catch(Exception e)
                    {
                        System.out.println(e.getMessage());
                    }



            for(int ii=0;ii<this.jtable_modelo_tiendas.getRowCount();ii++)
                {
                    texto="select * from x1sieuno_articulo_promociones_insertv5(3,"+this.jtable_modelo_tiendas.getValueAt(ii, 0).toString()+",'"+selectin+"','"+this.jtable_modelo_tiendas.getValueAt(ii, 5).toString()+"','"+this.jtable_modelo_tiendas.getValueAt(ii, 6).toString()+"','"+this.jtf_iddocto.getText()+"')";
                    System.out.println(texto);
                        try
                        {
                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                        while (rs.next())
                            {
                                resul=rs.getString(1);
                            }
                        } catch(Exception e)
                            {
                                System.out.println(e.getMessage());
                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                            }
                }
            if(resul.equals("1"))
                {
                    jtable_modelo_pro.removeRow(Integer.valueOf(this.idfila.getText()));
                    JOptionPane.showMessageDialog(null,"Articulo Eliminado", "Sistema Integral(Promociones)",1);
                }
            }//fin del if qu confirmo guardar diferencia
}//GEN-LAST:event_jbtn_promocionindielimiActionPerformed

    private void jmni_exportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_exportActionPerformed
        // TODO add your handling code here:
         if(JOptionPane.showConfirmDialog(null, "Desea Generar Archivo esto Puede Tardar unos Minutos?")==0) {
            this.exportar_archivo();
         }
    }//GEN-LAST:event_jmni_exportActionPerformed

    private void jmni_importaidActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_importaidActionPerformed
        // TODO add your handling code here:
    if(JOptionPane.showConfirmDialog(null, "Desea Importar Datos por Id?")==0)
        {
            String arreglo_importa[]=null;

            if (indexactual == 0)
            arreglo_importa=this.jta_archivo.getText().split("\n");
            if (indexactual == 2)
            arreglo_importa=this.jta_archivo2.getText().split("\n");
            if (indexactual == 3)
            arreglo_importa=this.jta_archivo1.getText().split("\n");

            String arreglo_codigo[]=null,selectin="";
            System.out.println("Estos tiene archivo:"+arreglo_importa.length);
            for (int i=0;i<arreglo_importa.length;i++)
                {
                arreglo_codigo=arreglo_importa[i].split("\t");
                    if (i>0)
                        {
                            selectin+=".";
                        }
                    selectin+=""+arreglo_codigo[0].trim()+"";
                }
            this.executabusqueda(17,1,selectin);
            this.jta_archivo.setText("");
            if(indexactual==3)
                this.verexistencias();
        }
    }//GEN-LAST:event_jmni_importaidActionPerformed

    private void jmni_importarclaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_importarclaveActionPerformed
        // TODO add your handling code here:
        if(JOptionPane.showConfirmDialog(null, "Desea Importar Datos por Clave?")==0)
        {
            String arreglo_importa[]=null;

            if (indexactual == 0)
            arreglo_importa=this.jta_archivo.getText().split("\n");
            if (indexactual == 2)
            arreglo_importa=this.jta_archivo2.getText().split("\n");
            if (indexactual == 3)
            arreglo_importa=this.jta_archivo1.getText().split("\n");

            String arreglo_codigo[]=null,selectin="";
            System.out.println("Estos tiene archivo:"+arreglo_importa.length);
            for (int i=0;i<arreglo_importa.length;i++)
                {
                arreglo_codigo=arreglo_importa[i].split("\t");
                    if (i>0)
                        {
                            selectin+=".";
                        }
                    selectin+=""+arreglo_codigo[0].trim()+"";
                }
            this.executabusqueda(12,1,selectin);
            this.jta_archivo.setText("");
        }
}//GEN-LAST:event_jmni_importarclaveActionPerformed

    private void jmni_importacsvActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_importacsvActionPerformed
        // TODO add your handling code here:
        if(JOptionPane.showConfirmDialog(null, "Desea Importar Datos por Clave?")==0)
        {
            String arreglo_importa[]=null;

            if (indexactual == 0)
            arreglo_importa=this.jta_archivo.getText().split("\n");
            if (indexactual == 3)
            arreglo_importa=this.jta_archivo1.getText().split("\n");
            
            String arreglo_codigo[]=null,selectin="";
            System.out.println("Estos tiene archivo:"+arreglo_importa.length);
            for (int i=0;i<arreglo_importa.length;i++)
                {
                arreglo_codigo=arreglo_importa[i].split(",");
                    if (i>0)
                        {
                            selectin+=".";
                        }
                    selectin+=""+arreglo_codigo[0].trim()+"";
                }
            this.executabusqueda(12,1,selectin);
            this.jta_archivo.setText("");
        }
}//GEN-LAST:event_jmni_importacsvActionPerformed

    private void jTabbedPane1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTabbedPane1StateChanged
        // TODO add your handling code here:
               indexactual = this.jTabbedPane1.getSelectedIndex();
               if(mueveindex>0)
                    {
                        if ((indexactual == 3) && (ci==0))
                            {
                                ci=1;
                                this.carga_datos_articulo_rebfiltro(9);
                                if(Integer.valueOf(this.jtf_iddocto1.getText())==0)
                                    {
                                       JOptionPane.showMessageDialog(null,"<html><h2><b>No Existe!!! Folio Asignado, si usted desea trabajar con articulos de rebaja se recomienda Crear un documento", "Sistema Integral(Promociones)</b></h2></html>",1);
                                    }
                                opbuscamp=2;
                                buscamp=1;

                            }
                        if (indexactual == 1)
                            {
                                this.jtf_promocan1.selectAll();
                                this.jtf_promocan1.requestFocus();
                            }
                        if (indexactual == 0)
                            {

                                opbuscamp=1;
                                buscamp=1;
                                 this.buttonGroup1.setSelected(jrb_obexacto.getModel(), true);
                                this.buttonGroup2.setSelected(jrb_bclave.getModel(), true);

                            }

                    }
    }//GEN-LAST:event_jTabbedPane1StateChanged

    private void jrb_obexacto1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_obexacto1ActionPerformed
        // TODO add your handling code here:
          opbuscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_obexacto1ActionPerformed

    private void jrb_obcomienza1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_obcomienza1ActionPerformed
        // TODO add your handling code here:
        opbuscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_obcomienza1ActionPerformed

    private void jrb_obaniway1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_obaniway1ActionPerformed
        // TODO add your handling code here:
        opbuscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_obaniway1ActionPerformed

    private void jtf_busqueda1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_busqueda1ActionPerformed
        // TODO add your handling code here:
        this.jbtn_buscar1ActionPerformed(evt);
    }//GEN-LAST:event_jtf_busqueda1ActionPerformed

    private void jbtn_buscar1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_buscar1ActionPerformed
        // TODO add your handling code here:
        if(this.jtf_busqueda1.getText().length()>0)
            {
            if(JOptionPane.showConfirmDialog(null, "Estan Correctos sus Datos?")==0)
                {
                    this.executabusqueda(buscamp,opbuscamp,this.jtf_busqueda1.getText().trim().toUpperCase());
                    this.verexistencias();
                }
            else
                {
                    this.jtf_busqueda.requestFocus();
                }
            }
    }//GEN-LAST:event_jbtn_buscar1ActionPerformed

    private void jrb_bclave2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bclave2ActionPerformed
        // TODO add your handling code here:
              buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bclave2ActionPerformed

    private void jrb_bclave3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bclave3ActionPerformed
        // TODO add your handling code here:
              buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bclave3ActionPerformed

    private void jrb_bdescrip1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bdescrip1ActionPerformed
        // TODO add your handling code here:
              buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bdescrip1ActionPerformed

    private void jrb_bitem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bitem1ActionPerformed
        // TODO add your handling code here:
              buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bitem1ActionPerformed

    private void jrb_bidsubfam1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bidsubfam1ActionPerformed
        // TODO add your handling code here:
              buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bidsubfam1ActionPerformed

    private void jrb_bidfam1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bidfam1ActionPerformed
        // TODO add your handling code here:
              buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bidfam1ActionPerformed

    private void jrb_bdessubfam1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bdessubfam1ActionPerformed
        // TODO add your handling code here:
              buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bdessubfam1ActionPerformed

    private void jtf_busqueda2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_busqueda2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_busqueda2ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        // TODO add your handling code here:
if(this.jtf_rebajacodigo.getText().toString().length()>1)
    {
    if(JOptionPane.showConfirmDialog(null, "<html><b><h2>Tienda:"+this.jtf_rebajaidt1.getText()+"<Br>Articulo:"+this.jtf_rebajacodigo.getText()+"<br>Precio de Rebaja:"+this.jtf_busqueda2.getText()+"?</h2></b></html>")==0)
        {
        String idn[]=this.jtf_rebajadescrip.getText().split(":");
        String cadenasql="select * from x1sieuno_articulo_promociones_rebajav2(1,'"+this.jtf_rebidtiendaactual.getText().trim()+"','"+this.jtf_busqueda2.getText().trim()+"','"+idn[0]+"',"+this.jtf_iddocto1.getText()+",'');",retorno="";
       //invoco al metodo que trae el recordset de datos
       System.out.println(cadenasql);
        try
         {
            rs = x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
            while (rs.next())
                {
                    retorno=rs.getString(1);
                }
        }
        catch(Exception e)
        {
                System.out.println(e.getMessage());
        }
        if (retorno.equals("1"))
            {
                JOptionPane.showMessageDialog(null,"Precio Actualizado Correctamente!!", "Sistema Integral Promociones",1);
                this.jtable_modelo_existencias.setValueAt(this.jtf_busqueda2.getText(), Integer.valueOf(this.jtf_rebidfila.getText()), Integer.valueOf(this.jtf_rebidfila1.getText()));
            }
        }
    }
else
{
    JOptionPane.showMessageDialog(null,"Error Elija una Clave!!", "Sistema Integral Promociones",1);
}
    }//GEN-LAST:event_jButton4ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:
    if(this.jtf_rebajacodigo.getText().toString().length()>1)
    {
    if(JOptionPane.showConfirmDialog(null, "<html><b><h2>Todas las Tiendas <br> Articulo:"+this.jtf_rebajacodigo.getText()+"<br>Precio de Rebaja:"+this.jtf_busqueda2.getText()+"?</h2></b></html>")==0)
        {
         String idn[]=this.jtf_rebajadescrip.getText().split(":");
        String cadenasql="select * from x1sieuno_articulo_promociones_rebajav2(2,'"+this.jtf_rebidtiendaactual.getText().trim()+"','"+this.jtf_busqueda2.getText().trim()+"','"+idn[0]+"',"+this.jtf_iddocto1.getText()+",'');",retorno="";
       //invoco al metodo que trae el recordset de datos
       System.out.println(cadenasql);
        try
         {
            rs = x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
            while (rs.next())
                {
                    retorno=rs.getString(1);
                }
        }
        catch(Exception e)
        {
                System.out.println(e.getMessage());
        }
        if (retorno.equals("1"))
            {
                JOptionPane.showMessageDialog(null,"Precio Actualizado Correctamente!!", "Sistema Integral Promociones",1);
                            for(int ii=3;ii<this.jtable_modelo_existencias.getColumnCount();ii++)
                                {
                                    this.jtable_modelo_existencias.setValueAt(this.jtf_busqueda2.getText(), Integer.valueOf(this.jtf_rebidfila.getText()), ii);
                                }

            }
        }
    }
else
{
    JOptionPane.showMessageDialog(null,"Error Elija una Clave!!", "Sistema Integral Promociones",1);
}
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jbtn_eliminareballActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_eliminareballActionPerformed
        // TODO add your handling code here:
    if(this.jtf_rebajacodigo.getText().toString().length()>1)
    {
    if(JOptionPane.showConfirmDialog(null, "<html><b><h2>Eliminar Todas las Tiendas <br> Articulo:"+this.jtf_rebajacodigo.getText()+"<br>Precio de Rebaja:"+this.jtf_busqueda2.getText()+"?</h2></b></html>")==0)
        {
        String idn[]=this.jtf_rebajadescrip.getText().split(":");
        String cadenasql="select * from x1sieuno_articulo_promociones_rebajav2(4,'"+this.jtf_rebidtiendaactual.getText().trim()+"','"+this.jtf_busqueda2.getText().trim()+"','"+idn[0]+"',0,'');",retorno="";
       //invoco al metodo que trae el recordset de datos
       System.out.println(cadenasql);
        try
         {
            rs = x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
            while (rs.next())
                {
                    retorno=rs.getString(1);
                }
        }
        catch(Exception e)
        {
                System.out.println(e.getMessage());
        }
        if (retorno.equals("1"))
            {
                JOptionPane.showMessageDialog(null,"Precio Actualizado Correctamente!!", "Sistema Integral Promociones",1);
                        for(int ii=3;ii<this.jtable_modelo_existencias.getColumnCount();ii++)
                            {
                                this.jtable_modelo_existencias.setValueAt("", Integer.valueOf(this.jtf_rebidfila.getText()), ii);

                            }

            }
        }
    }
else
{
    JOptionPane.showMessageDialog(null,"Error Elija una Clave!!", "Sistema Integral Promociones",1);
}
}//GEN-LAST:event_jbtn_eliminareballActionPerformed

    private void jrbt_rebfilfamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrbt_rebfilfamActionPerformed
        // TODO add your handling code here:
         tipfil=Integer.parseInt(evt.getActionCommand().toString());
        this.carga_datos_articulo_rebfiltro(9);
    }//GEN-LAST:event_jrbt_rebfilfamActionPerformed

    private void jrbt_rebfilsubActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrbt_rebfilsubActionPerformed
        // TODO add your handling code here:


        tipfil=Integer.parseInt(evt.getActionCommand().toString());
        this.carga_datos_articulo_rebfiltro(10);
    }//GEN-LAST:event_jrbt_rebfilsubActionPerformed

    private void jbtn_prereb_verificaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_prereb_verificaActionPerformed
        // TODO add your handling code here:
         if(JOptionPane.showConfirmDialog(null, "<html><b><h2>Esta Operacion puede Tardar Varios Minutos<br>El programa Verificara los Productos de Rebaja en todas las Tiendas?</h2></b></html>")==0)
        {
        String cadenasql="select * from x1sieuno_articulo_promociones_rebaja(5,'','','');",retorno="";
       //invoco al metodo que trae el recordset de datos
       System.out.println(cadenasql);
        try
         {
            rs = x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
            while (rs.next())
                {
                    retorno=rs.getString(1);
                }
        }
        catch(Exception e)
        {
                System.out.println(e.getMessage());
        }
        if (retorno.equals("1"))
            {
                JOptionPane.showMessageDialog(null,"Precio Actualizado Correctamente!!", "Sistema Integral Promociones",1);

            }
        }
    }//GEN-LAST:event_jbtn_prereb_verificaActionPerformed

    private void jcbx_historialne3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_historialne3ActionPerformed
        // TODO add your handling code here:
if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Ver los Precios de Rebaja de los Articulos?</b></h2></html>")==0)
    {

 while(jtable_modelo_existencias.getRowCount()>0)jtable_modelo_existencias.removeRow(0);
         Object[] fnewRowe = new Object[4];
         for(int ii=0;ii<this.jtable_modelo_pro.getRowCount();ii++)
                    {
                            fnewRowe[0]=jtable_modelo_pro.getValueAt(ii, 0).toString();
                            fnewRowe[1]=jtable_modelo_pro.getValueAt(ii, 1).toString();
                            fnewRowe[2]=jtable_modelo_pro.getValueAt(ii, 2).toString();
                            fnewRowe[3]="";
                            jtable_modelo_existencias.addRow(fnewRowe);
                    }
         this.verexistencias();
         this.jTabbedPane1.setSelectedIndex(3);
        }
    }//GEN-LAST:event_jcbx_historialne3ActionPerformed

    private void jtb_distribucionalta3PropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jtb_distribucionalta3PropertyChange
        // TODO add your handling code here:
    }//GEN-LAST:event_jtb_distribucionalta3PropertyChange

    private void jtb_distribucionalta3KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtb_distribucionalta3KeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtb_distribucionalta3KeyPressed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        // TODO add your handling code here:
        if(this.jtf_rebajacodigo.getText().toString().length()>1)
    {
    if(JOptionPane.showConfirmDialog(null, "<html><b><h2>Tienda:"+this.jtf_rebajaidt1.getText()+"<Br>Articulo:"+this.jtf_rebajacodigo.getText()+"<br>Precio:"+this.jtf_rebaprecio.getText()+"?</h2></b></html>")==0)
        {
        String idn[]=this.jtf_rebajadescrip.getText().split(":");
        String cadenasql="select * from x1sieuno_articulo_promociones_rebajav2(6,'"+this.jtf_rebajaidt.getText().trim()+"','"+this.jtf_rebaprecio.getText().trim()+"','"+idn[0]+"');",retorno="";
       //invoco al metodo que trae el recordset de datos
       System.out.println(cadenasql);
        try
         {
            rs = x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
            while (rs.next())
                {
                    retorno=rs.getString(1);
                }
        }
        catch(Exception e)
        {
                System.out.println(e.getMessage());
        }
        if (retorno.equals("1"))
            {
                JOptionPane.showMessageDialog(null,"Precio Actualizado Correctamente!!", "Sistema Integral Promociones",1);
                 this.carga_datos_tiendasprecios(this.jtf_rebajacodigo.getText());
            }
        }
    }
else
{
    JOptionPane.showMessageDialog(null,"Error Elija una Clave!!", "Sistema Integral Promociones",1);
}
    }//GEN-LAST:event_jButton6ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        // TODO add your handling code here:
if(this.jtf_rebajacodigo.getText().toString().length()>1)
    {
    if(JOptionPane.showConfirmDialog(null, "<html><b><h2>Todas las Tiendes<Br>Articulo:"+this.jtf_rebajacodigo.getText()+"<br>Precio:"+this.jtf_rebaprecio.getText()+"?</h2></b></html>")==0)
        {
        String idn[]=this.jtf_rebajadescrip.getText().split(":");
        String cadenasql="select * from x1sieuno_articulo_promociones_rebajav2(7,'"+this.jtf_rebajaidt.getText().trim()+"','"+this.jtf_rebaprecio.getText().trim()+"','"+idn[0]+"');",retorno="";
       //invoco al metodo que trae el recordset de datos
       System.out.println(cadenasql);
        try
         {
            rs = x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
            while (rs.next())
                {
                    retorno=rs.getString(1);
                }
        }
        catch(Exception e)
        {
                System.out.println(e.getMessage());
        }
        if (retorno.equals("1"))
            {
                JOptionPane.showMessageDialog(null,"Precio Actualizado Correctamente!!", "Sistema Integral Promociones",1);
                this.jtable_modelo_existencias.setValueAt(this.jtf_rebaprecio.getText(), Integer.valueOf(this.jtf_rebidfila.getText()), 2);
                 this.carga_datos_tiendasprecios(this.jtf_rebajacodigo.getText());
            }
        }
    }
else
{
    JOptionPane.showMessageDialog(null,"Error Elija una Clave!!", "Sistema Integral Promociones",1);
}
    }//GEN-LAST:event_jButton7ActionPerformed

    private void jcbx_historialne4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_historialne4ActionPerformed
        // TODO add your handling code here:
        if(JOptionPane.showConfirmDialog(null, "<html><b><h2>Desea ver Los Ultimos Articulos Modificados?</h2></b></html>")==0)
        {
                 this.carga_datos_detalle_rebajas(5, "");
                 this.verexistencias();
        }

    }//GEN-LAST:event_jcbx_historialne4ActionPerformed

    private void jbtn_eliminarebActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_eliminarebActionPerformed
        // TODO add your handling code here:
         if(this.jtf_rebajacodigo.getText().toString().length()>1)
    {
    if(JOptionPane.showConfirmDialog(null, "<html><b><h2>Dese Eliminar en Tienda:"+this.jtf_rebajaidt1.getText()+"<Br>Articulo:"+this.jtf_rebajacodigo.getText()+"<br>Precio de Rebaja:"+this.jtf_busqueda2.getText()+"?</h2></b></html>")==0)
        {
        String idn[]=this.jtf_rebajadescrip.getText().split(":");
        String cadenasql="select * from x1sieuno_articulo_promociones_rebajav2(8,'"+this.jtf_rebidtiendaactual.getText().trim()+"','"+this.jtf_busqueda2.getText().trim()+"','"+idn[0]+"',0,'');",retorno="";
       //invoco al metodo que trae el recordset de datos
       System.out.println(cadenasql);
        try
         {
            rs = x.sieuno_executediversosv2(cadenasql,variables_global.getconexiongral());
            while (rs.next())
                {
                    retorno=rs.getString(1);
                }
        }
        catch(Exception e)
        {
                System.out.println(e.getMessage());
        }
        if (retorno.equals("1"))
            {
                JOptionPane.showMessageDialog(null,"Precio Actualizado Correctamente!!", "Sistema Integral Promociones",1);
                this.jtable_modelo_existencias.setValueAt("", Integer.valueOf(this.jtf_rebidfila.getText()), Integer.valueOf(this.jtf_rebidfila1.getText()));


            }
        }
    }
else
{
    JOptionPane.showMessageDialog(null,"Error Elija una Clave!!", "Sistema Integral Promociones",1);
}
}//GEN-LAST:event_jbtn_eliminarebActionPerformed

    private void jtf_describe1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_describe1ActionPerformed
        // TODO add your handling code here:
        this.jtf_observaindica1.selectAll();
        this.jtf_observaindica1.requestFocus();
    }//GEN-LAST:event_jtf_describe1ActionPerformed

    private void jbtn_guardasolicitud1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_guardasolicitud1ActionPerformed
        // TODO add your handling code here:
         if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Agrupar Articulos de Rebaja."+this.jtf_describe.getText().toUpperCase().trim()+"<br>Fecha Inicio:"+this.fechaeuropea(fechahoy)+"<br> Estan correcto sus Datos?</b></h2></html>")==0)
                        {

                                    String texto="select * from x1sieuno_articulo_promociones_insertv4(3,0,0,'','','','','','"+this.jtf_describe1.getText()+"','"+this.jtf_observaindica1.getText()+"','','"+variables_global.getId_empleado()+"','','',0,0)";
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                this.jtf_iddocto1.setText(rs.getString(1));
                      
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                    this.jbtn_promociondesindi.setVisible(false);
                                    this.jbtn_promocionindielimi.setVisible(false);
                                    this.jbtn_agregart.setVisible(false);
                                    this.jbtn_guardasolicitud.setVisible(false);
                        }//fin del if qu confirmo guardar diferencia
    }//GEN-LAST:event_jbtn_guardasolicitud1ActionPerformed

    private void jtf_observaindica1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_observaindica1ActionPerformed
        // TODO add your handling code here:
        this.jbtn_guardasolicitud1ActionPerformed(evt);
    }//GEN-LAST:event_jtf_observaindica1ActionPerformed

    private void jbtn_agregart1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_agregart1ActionPerformed
        // TODO add your handling code here:
        String codigoint="",id[]=null;
        int encontrado=0;
         for(int j=0;j<elementosmodelo;j++)
            {
               id=this.jlst_clientesdistribucion1.getModel().getElementAt(j).toString().split(":");
               encontrado=0;
                for(int ii=0;ii<this.jtable_modelo_tiendasdd.getRowCount();ii++)
                    {
                        codigoint=jtable_modelo_tiendasdd.getValueAt(ii, 0).toString();
                        if(id[0].equals(codigoint))
                            {
                                encontrado=1;
                                jtable_modelo_tiendasdd.setValueAt(this.fechaeuropea(this.jdc_rangoini.getDate()), ii, 2);
                                jtable_modelo_tiendasdd.setValueAt(this.fechaeuropea(this.jdc_rangofinal.getDate()), ii, 3);
                                jtable_modelo_tiendasdd.setValueAt(this.jtf_promocan.getText(), ii, 4);
                            }
                    }
                if(encontrado==0)
                    {
                        this.jtable_modelo_tiendasdd.addRow(new Object[]{id[0],id[1],this.fechaeuropea(this.jdc_rangoini.getDate()),this.fechaeuropea(this.jdc_rangofinal.getDate()),this.jtf_promocan.getText(),"0","0"});
                    }
                else
                    {
                    JOptionPane.showMessageDialog(null,"<html><h2><b>Tienda "+id[1]+" Ya Existe! solo se Actualiza fecha Promocion</b></h2></html>", "Sistema Integral(Alta Promocion) : Error",1);
                    }
         }
    }//GEN-LAST:event_jbtn_agregart1ActionPerformed

    private void jtf_promocan1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_promocan1ActionPerformed
        // TODO add your handling code here:
        this.jtf_describe2.selectAll();
        this.jtf_describe2.requestFocus();
    }//GEN-LAST:event_jtf_promocan1ActionPerformed

    private void jtf_describe2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_describe2ActionPerformed
        // TODO add your handling code here:
        this.jtf_observaindica2.selectAll();
        this.jtf_observaindica2.requestFocus();
    }//GEN-LAST:event_jtf_describe2ActionPerformed

    private void jtb_distribucionalta1PropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jtb_distribucionalta1PropertyChange
        // TODO add your handling code here:
    }//GEN-LAST:event_jtb_distribucionalta1PropertyChange

    private void jtb_distribucionalta1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtb_distribucionalta1KeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtb_distribucionalta1KeyPressed

    private void jcbx_historialne5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_historialne5ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jcbx_historialne5ActionPerformed

    private void jbtn_guardasolicitud2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_guardasolicitud2ActionPerformed
        // TODO add your handling code here:
        String texto="",idt="",idtb="";
      if(this.jcbx_confirma1.isSelected()==true)
        {
           int fo=Integer.valueOf(this.jtf_iddocto2.getText());
            if(fo==0)
                {

                    int i=0;
                    if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Guardar Promocion de Tienda:"+this.jtf_describe2.getText().toUpperCase().trim()+"<br>% Promocion:"+this.jtf_promocan1.getText()+"<br>Fecha:"+this.fechaeuropea(this.jdc_rangoini2.getDate())+" A "+this.fechaeuropea(this.jdc_rangofinal1.getDate())+"<br> Estan correcto sus Datos?</b></h2></html>")==0)
                        {
                            for(int ii=0;ii<this.jtable_modelo_tiendasdd.getRowCount();ii++)
                                {
                                    texto="select * from x1sieuno_articulo_promociones_insencabezado(4,"+this.jtable_modelo_tiendasdd.getValueAt(ii, 0).toString()+","+this.jtf_iddocto2.getText()+",'"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(this.jtable_modelo_tiendasdd.getValueAt(ii, 2).toString())+"','"+this.fechaamericana(this.jtable_modelo_tiendasdd.getValueAt(ii, 3).toString())+"','"+this.jtf_describe2.getText()+"','"+this.jtf_observaindica2.getText()+"','2','"+variables_global.getId_empleado()+"','','"+this.jtf_promocan1.getText()+"',0,0,0,0)";
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                this.jtf_iddocto2.setText(rs.getString(1));
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                }

                        }//fin del if qu confirmo guardar diferencia
                            texto="select * from x1sieuno_articulo_promociones_catalogov2(6,'"+this.jtf_iddocto2.getText()+"') as (id integer,iddoc integer,idesquema integer,idpromcat integer,idpromodet integer)";
                            try
                                {
                                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                        while (rs.next())
                                                {
                                                    idtb=rs.getString("idesquema").toString();
                                                    for(i=0;i<this.jtable_modelo_tiendasdd.getRowCount();i++)
                                                        {
                                                            idt = jtable_modelo_tiendasdd.getValueAt(i, 0).toString();
                                                            if(idt.equals(idtb))
                                                                {
                                                                    jtable_modelo_tiendasdd.setValueAt(rs.getString("idpromcat"),i,5);
                                                                    jtable_modelo_tiendasdd.setValueAt(rs.getString("idpromodet"),i,6);
                                                                }
                                                        }

                                                }
                                }
                                catch(Exception e)
                                    {
                                        System.out.println(e.getMessage());
                                    }
                }


            else
                {
                    if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Actualizar Promocion."+this.jtf_describe2.getText().toUpperCase().trim()+"<br>% Promocion:"+this.jtf_promocan1.getText()+"<br>Fecha:"+this.fechaeuropea(this.jdc_rangoini2.getDate())+" A "+this.fechaeuropea(this.jdc_rangofinal1.getDate())+"<br> Estan correcto sus Datos?</b></h2></html>")==0)
                        {

                            texto="select * from x1sieuno_articulo_promociones_insencabezado(1,0,"+this.jtf_iddocto2.getText()+",'"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(this.jdc_rangoini2.getDate())+"','"+this.fechaamericana(this.jdc_rangofinal1.getDate())+"','"+this.jtf_describe2.getText()+"','"+this.jtf_observaindica2.getText()+"','2','"+variables_global.getId_empleado()+"','','"+this.jtf_promocan1.getText()+"',0,0,0,0)";
                            System.out.println(texto);
                            try
                                {
                                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                while (rs.next())
                                    {
                                        //resul=rs.getString(1);
                                    }
                                }
                            catch(Exception e)
                                    {
                                        System.out.println(e.getMessage());
                                    }
                        //se inicia el ciclo para actualizar las promociones
                            for(int ii=0;ii<this.jtable_modelo_tiendasdd.getRowCount();ii++)
                                {

                                    texto="select * from x1sieuno_articulo_promociones_insencabezado(5,"+this.jtable_modelo_tiendasdd.getValueAt(ii, 0).toString()+","+this.jtf_iddocto2.getText()+",'"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(this.jtable_modelo_tiendasdd.getValueAt(ii, 2).toString())+"','"+this.fechaamericana(this.jtable_modelo_tiendasdd.getValueAt(ii, 3).toString())+"','"+this.jtf_describe2.getText()+"','"+this.jtf_observaindica2.getText()+"','2','"+variables_global.getId_empleado()+"','','"+this.jtable_modelo_tiendasdd.getValueAt(ii, 4).toString()+"',"+this.jtable_modelo_tiendasdd.getValueAt(ii, 5).toString()+","+this.jtable_modelo_tiendasdd.getValueAt(ii, 6).toString()+",0,0)";
                                    System.out.println(texto);
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                this.jtf_iddocto2.setText(rs.getString(1));
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                }
                            this.cargar_datos_promotiendas(this.jtf_iddocto2.getText());
                            this.carga_datos_promociones(3,this.jtf_iddocto2.getText());
                            this.carga_datos_promociones_detalle();
                        }//fin del if qu confirmo guardar diferencia
                }
            }
        else
                {
                    JOptionPane.showMessageDialog(null,"Seleccione la opcion que indica que a verificado las tiendas!!", "Sistema Integral(Promociones) : Ayuda",1);
                }
    }//GEN-LAST:event_jbtn_guardasolicitud2ActionPerformed

    private void jcbx_confirma1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_confirma1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jcbx_confirma1ActionPerformed

    private void jbtn_promocionindielimi1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_promocionindielimi1ActionPerformed
        // TODO add your handling code here:
        String texto="",resul="";
        int i=0;
        if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Eliminar "+this.jtf_idproductopromo.getText().toUpperCase().trim()+"?</b></h2></html>")==0)
            {
                    texto="select * from x1sieuno_articulo_promociones_insertv5(3,"+this.jtf_idtienda.getText()+",'"+this.jtf_idproductopromo.getText()+"','"+this.jtf_idtiendapro.getText()+"','1','"+this.jtf_iddocto.getText()+"')";
                    System.out.println(texto);
                        try
                        {
                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                        while (rs.next())
                            {
                                resul=rs.getString(1);
                            }
                        } catch(Exception e)
                            {
                                System.out.println(e.getMessage());
                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                            }

            if(resul.equals("1"))
                {
                    jtable_modelo_pro.removeRow(Integer.valueOf(this.idfila.getText()));
                    JOptionPane.showMessageDialog(null,"Articulo Eliminado", "Sistema Integral(Promociones)",1);
                }
            }//fin del if qu confirmo guardar diferencia
    }//GEN-LAST:event_jbtn_promocionindielimi1ActionPerformed

    private void jbtn_promociondesindi1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_promociondesindi1ActionPerformed
        // TODO add your handling code here:

        String selectin="",resul="",texto="";
                        for(int ii=0;ii<this.jtable_modelo.getRowCount();ii++)
                            {
                                if (ii>0)
                                    {
                                        selectin+=".";
                                    }
                                selectin+=""+jtable_modelo.getValueAt(ii ,2)+"";
                            }
         /*texto="select * from x1sieuno_articulo_promociones_insertv5(1,0,'"+selectin+"','0','0','"+this.jtf_iddocto.getText()+"')";
            System.out.println(texto);
            try
                {
                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                    while (rs.next())
                        {
                        resul=rs.getString(1);
                        }
                }
                catch(Exception e)
                    {
                        System.out.println(e.getMessage());
                    }
          */
 if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Agregar "+this.jtf_registros.getText().toUpperCase().trim()+" Articulos?</b></h2></html>")==0)
       {
         texto="select * from x1sieuno_articulo_promociones_insertv5(2,"+this.jtf_idtienda.getText()+",'"+selectin+"','"+this.jtf_idtiendapro.getText()+"','1','"+this.jtf_iddocto.getText()+"')";
                    System.out.println(texto);
                        try
                        {
                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                        while (rs.next())
                            {
                                resul=rs.getString(1);
                            }
                        } catch(Exception e)
                            {
                                System.out.println(e.getMessage());
                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                            }
        }
    }//GEN-LAST:event_jbtn_promociondesindi1ActionPerformed

    private void jbtn_agregart2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_agregart2ActionPerformed
        // TODO add your handling code here:
                String codigoint="",id[]=null;
        int encontrado=0;
         for(int j=0;j<elementosmodelo;j++)
            {
               id=this.jlst_clientesdistribucion2.getModel().getElementAt(j).toString().split(":");
               encontrado=0;
                for(int ii=0;ii<this.jtable_modelo_tiendaskit.getRowCount();ii++)
                    {
                        codigoint=jtable_modelo_tiendaskit.getValueAt(ii, 0).toString();
                        if(id[0].equals(codigoint))
                            {
                                encontrado=1;
                                jtable_modelo_tiendaskit.setValueAt(this.fechaeuropea(this.jdc_rangoini3.getDate()), ii, 2);
                                jtable_modelo_tiendaskit.setValueAt(this.fechaeuropea(this.jdc_rangofinal2.getDate()), ii, 3);
                                jtable_modelo_tiendaskit.setValueAt(this.jtf_promocan2.getText(), ii, 4);
                            }
                    }
                if(encontrado==0)
                    {
                        this.jtable_modelo_tiendaskit.addRow(new Object[]{id[0],id[1],this.fechaeuropea(this.jdc_rangoini3.getDate()),this.fechaeuropea(this.jdc_rangofinal2.getDate()),this.jtf_promocan2.getText(),"0","0"});
                    }
                else
                    {
                    JOptionPane.showMessageDialog(null,"<html><h2><b>Tienda "+id[1]+" Ya Existe! solo se Actualiza fecha Promocion</b></h2></html>", "Sistema Integral(Alta Promocion) : Error",1);
                    }
         }

    }//GEN-LAST:event_jbtn_agregart2ActionPerformed

    private void jtf_promocan2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_promocan2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_promocan2ActionPerformed

    private void jtf_describe3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_describe3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_describe3ActionPerformed

    private void jtb_distribucionalta4PropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jtb_distribucionalta4PropertyChange
        // TODO add your handling code here:
    }//GEN-LAST:event_jtb_distribucionalta4PropertyChange

    private void jtb_distribucionalta4KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtb_distribucionalta4KeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtb_distribucionalta4KeyPressed

    private void jcbx_historialne6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_historialne6ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jcbx_historialne6ActionPerformed

    private void jbtn_guardasolicitud3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_guardasolicitud3ActionPerformed
        // TODO add your handling code here:
                String texto="",idt="",idtb="";
      if(this.jcbx_confirma2.isSelected()==true)
        {
           int fo=Integer.valueOf(this.jtf_iddocto3.getText());
            if(fo==0)
                {
                    int i=0;
                    if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Guardar Promocion."+this.jtf_describe3.getText().toUpperCase().trim()+"<br>% Promocion:"+this.jtf_promocan2.getText()+"<br>Fecha:"+this.fechaeuropea(this.jdc_rangoini3.getDate())+" A "+this.fechaeuropea(this.jdc_rangofinal2.getDate())+"<br> Estan correcto sus Datos?</b></h2></html>")==0)
                        {
                            for(int ii=0;ii<this.jtable_modelo_tiendaskit.getRowCount();ii++)
                                {
                                    texto="select * from x1sieuno_articulo_promociones_insencabezado(6,"+this.jtable_modelo_tiendaskit.getValueAt(ii, 0).toString()+","+this.jtf_iddocto3.getText()+",'"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(this.jtable_modelo_tiendaskit.getValueAt(ii, 2).toString())+"','"+this.fechaamericana(this.jtable_modelo_tiendaskit.getValueAt(ii, 3).toString())+"','"+this.jtf_describe3.getText()+"','"+this.jtf_observaindica3.getText()+"','2','"+variables_global.getId_empleado()+"','','"+this.jtf_promocan2.getText()+"',0,0,"+this.jtf_promokitpzpag.getText()+","+this.jtf_promokitpzgrat.getText()+")";
                                    System.out.println(texto);
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                this.jtf_iddocto3.setText(rs.getString(1));
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                }

                        }//fin del if qu confirmo guardar diferencia
                            texto="select * from x1sieuno_articulo_promociones_catalogov2(6,'"+this.jtf_iddocto3.getText()+"') as (id integer,iddoc integer,idesquema integer,idpromcat integer,idpromodet integer)";
                            System.out.println(texto);
                            try
                                {
                                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                        while (rs.next())
                                                {
                                                    idtb=rs.getString("idesquema").toString();
                                                    for(i=0;i<this.jtable_modelo_tiendaskit.getRowCount();i++)
                                                        {
                                                            idt = jtable_modelo_tiendaskit.getValueAt(i, 0).toString();
                                                            if(idt.equals(idtb))
                                                                {
                                                                    jtable_modelo_tiendaskit.setValueAt(rs.getString("idpromcat"),i,5);
                                                                    jtable_modelo_tiendaskit.setValueAt(rs.getString("idpromodet"),i,6);
                                                                }
                                                        }

                                                }
                                }
                                catch(Exception e)
                                    {
                                        System.out.println(e.getMessage());
                                    }
                }
            else
                {
                    if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Actualizar Promocion."+this.jtf_describe3.getText().toUpperCase().trim()+"<br>% Promocion:"+this.jtf_promocan2.getText()+"<br>Fecha:"+this.fechaeuropea(this.jdc_rangoini3.getDate())+" A "+this.fechaeuropea(this.jdc_rangofinal2.getDate())+"<br> Estan correcto sus Datos?</b></h2></html>")==0)
                        {

                            texto="select * from x1sieuno_articulo_promociones_insencabezado(1,0,"+this.jtf_iddocto3.getText()+",'"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(this.jdc_rangoini3.getDate())+"','"+this.fechaamericana(this.jdc_rangofinal2.getDate())+"','"+this.jtf_describe3.getText()+"','"+this.jtf_observaindica3.getText()+"','2','"+variables_global.getId_empleado()+"','','"+this.jtf_promocan2.getText()+"',0,0,0,0)";
                            System.out.println(texto);
                            try
                                {
                                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                while (rs.next())
                                    {
                                        //resul=rs.getString(1);
                                    }
                                }
                            catch(Exception e)
                                    {
                                        System.out.println(e.getMessage());
                                    }
                        //se inicia el ciclo para actualizar las promociones
                            for(int ii=0;ii<this.jtable_modelo_tiendaskit.getRowCount();ii++)
                                {

                                    texto="select * from x1sieuno_articulo_promociones_insencabezado(7,"+this.jtable_modelo_tiendaskit.getValueAt(ii, 0).toString()+","+this.jtf_iddocto3.getText()+",'"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(fechahoy)+"','"+this.fechaamericana(this.jtable_modelo_tiendaskit.getValueAt(ii, 2).toString())+"','"+this.fechaamericana(this.jtable_modelo_tiendaskit.getValueAt(ii, 3).toString())+"','"+this.jtf_describe3.getText()+"','"+this.jtf_observaindica3.getText()+"','2','"+variables_global.getId_empleado()+"','','"+this.jtable_modelo_tiendaskit.getValueAt(ii, 4).toString()+"',"+this.jtable_modelo_tiendaskit.getValueAt(ii, 5).toString()+","+this.jtable_modelo_tiendaskit.getValueAt(ii, 6).toString()+","+this.jtf_promokitpzpag.getText()+","+this.jtf_promokitpzgrat.getText()+")";
                                    System.out.println(texto);
                                    try
                                        {
                                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                this.jtf_iddocto3.setText(rs.getString(1));
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                }
                            this.cargar_datos_promotiendas(this.jtf_iddocto3.getText());
                            this.carga_datos_promociones(3,this.jtf_iddocto3.getText());
                            this.carga_datos_promociones_detalle();
                        }//fin del if qu confirmo guardar diferencia
                }
            }
        else
                {
                    JOptionPane.showMessageDialog(null,"Seleccione la opcion que indica que a verificado las tiendas!!", "Sistema Integral(Promociones) : Ayuda",1);
                }
    }//GEN-LAST:event_jbtn_guardasolicitud3ActionPerformed

    private void jcbx_confirma2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_confirma2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jcbx_confirma2ActionPerformed

    private void jrb_bclave4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bclave4ActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bclave4ActionPerformed

    private void jrb_bdescrip2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bdescrip2ActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bdescrip2ActionPerformed

    private void jtf_busqueda3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_busqueda3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_busqueda3ActionPerformed

    private void jbtn_buscar2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_buscar2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jbtn_buscar2ActionPerformed

    private void jrb_bitem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bitem2ActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bitem2ActionPerformed

    private void jrb_obexacto2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_obexacto2ActionPerformed
        // TODO add your handling code here:
               opbuscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_obexacto2ActionPerformed

    private void jrb_obcomienza2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_obcomienza2ActionPerformed
        // TODO add your handling code here:
               opbuscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_obcomienza2ActionPerformed

    private void jrb_obaniway2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_obaniway2ActionPerformed
        // TODO add your handling code here:
               opbuscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_obaniway2ActionPerformed

    private void jrb_bidfam2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bidfam2ActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bidfam2ActionPerformed

    private void jrb_bidsubfam2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bidsubfam2ActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bidsubfam2ActionPerformed

    private void jrb_bdessubfam2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bdessubfam2ActionPerformed
        // TODO add your handling code here:
                buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bdessubfam2ActionPerformed

    private void jrb_bclave5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jrb_bclave5ActionPerformed
        // TODO add your handling code here:
        buscamp=Integer.parseInt(evt.getActionCommand().toString());
    }//GEN-LAST:event_jrb_bclave5ActionPerformed

    private void jcbx_historialne7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_historialne7ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jcbx_historialne7ActionPerformed

    private void jbtn_promociondesindi3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_promociondesindi3ActionPerformed
        // TODO add your handling code here:

        String selectin="",resul="",texto="";
                        for(int ii=0;ii<this.jtable_modelo.getRowCount();ii++)
                            {
                                if (ii>0)
                                    {
                                        selectin+=".";
                                    }
                                selectin+=""+jtable_modelo.getValueAt(ii ,2)+"";
                            }
         texto="select * from x1sieuno_articulo_promociones_insertv5(1,0,'"+selectin+"','0','0','"+this.jtf_iddocto3.getText()+"')";
            System.out.println(texto);
            try
                {
                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                    while (rs.next())
                        {
                        resul=rs.getString(1);
                        }
                }
                catch(Exception e)
                    {
                        System.out.println(e.getMessage());
                    }
 if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Agregar "+this.jtf_registros.getText().toUpperCase().trim()+" Articulos?</b></h2></html>")==0)
       {
         texto="select * from x1sieuno_articulo_promociones_insertv5(5,"+this.jtf_idtienda1.getText()+",'"+selectin+"','"+this.jtf_idtiendapro1.getText()+"','1','"+this.jtf_iddocto3.getText()+"')";
                    System.out.println(texto);
                        try
                        {
                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                        while (rs.next())
                            {
                                resul=rs.getString(1);
                            }
                        } catch(Exception e)
                            {
                                System.out.println(e.getMessage());
                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                            }
        }
    }//GEN-LAST:event_jbtn_promociondesindi3ActionPerformed

    private void jbtn_promocionindielimi2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_promocionindielimi2ActionPerformed
        // TODO add your handling code here:

        String texto="",resul="";
        int i=0;
        if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Eliminar "+this.jtf_idproductopromo.getText().toUpperCase().trim()+"?</b></h2></html>")==0)
            {

             String selectin="";
                        for(int ii=0;ii<this.jtable_modelo.getRowCount();ii++)
                            {
                                if (ii>0)
                                    {
                                        selectin+=".";
                                    }
                                selectin+=""+jtable_modelo.getValueAt(ii ,2)+"";
                            }

            texto="select * from x1sieuno_articulo_promociones_insertv5(4,0,'"+selectin+"','0','0','"+this.jtf_iddocto.getText()+"')";
            System.out.println(texto);
            try
                {
                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                    while (rs.next())
                        {
                        resul=rs.getString(1);
                        }
                }
                catch(Exception e)
                    {
                        System.out.println(e.getMessage());
                    }



            for(int ii=0;ii<this.jtable_modelo_tiendaskit.getRowCount();ii++)
                {
                    texto="select * from x1sieuno_articulo_promociones_insertv5(6,"+this.jtable_modelo_tiendaskit.getValueAt(ii, 0).toString()+",'"+selectin+"','"+this.jtable_modelo_tiendaskit.getValueAt(ii, 5).toString()+"','"+this.jtable_modelo_tiendaskit.getValueAt(ii, 6).toString()+"','"+this.jtf_iddocto3.getText()+"')";
                    System.out.println(texto);
                        try
                        {
                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                        while (rs.next())
                            {
                                resul=rs.getString(1);
                            }
                        } catch(Exception e)
                            {
                                System.out.println(e.getMessage());
                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                            }
                }
            if(resul.equals("1"))
                {
                    //jtable_modelo_pro.removeRow(Integer.valueOf(this.idfila.getText()));
                    JOptionPane.showMessageDialog(null,"Articulo Eliminado", "Sistema Integral(Promociones)",1);
                }
            }//fin del if qu confirmo guardar diferencia
    }//GEN-LAST:event_jbtn_promocionindielimi2ActionPerformed

    private void jcbx_historialne8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_historialne8ActionPerformed
        // TODO add your handling code here:
        this.verexistencias();
    }//GEN-LAST:event_jcbx_historialne8ActionPerformed

    private void jbtn_promocionindielimi3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_promocionindielimi3ActionPerformed
        // TODO add your handling code here:
        String texto="",resul="";
        int i=0;
        if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Eliminar "+this.jtf_idproductopromo1.getText().toUpperCase().trim()+"?</b></h2></html>")==0)
            {
                    texto="select * from x1sieuno_articulo_promociones_insertv5(6,"+this.jtf_idtienda1.getText()+",'"+this.jtf_idproductopromo1.getText()+"','"+this.jtf_idtiendapro1.getText()+"','1','"+this.jtf_iddocto3.getText()+"')";
                    System.out.println(texto);
                        try
                        {
                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                        while (rs.next())
                            {
                                resul=rs.getString(1);
                            }
                        } catch(Exception e)
                            {
                                System.out.println(e.getMessage());
                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                            }

            if(resul.equals("1"))
                {
                    jtable_modelo_pro.removeRow(Integer.valueOf(this.idfila.getText()));
                    JOptionPane.showMessageDialog(null,"Articulo Eliminado", "Sistema Integral(Promociones)",1);
                }
            }//fin del if qu confirmo guardar diferencia
    }//GEN-LAST:event_jbtn_promocionindielimi3ActionPerformed

    private void jtf_promokitpzpagActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_promokitpzpagActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jtf_promokitpzpagActionPerformed

    private void jtf_promokitpzgratActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_promokitpzgratActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jtf_promokitpzgratActionPerformed

    private void jbtn_promociondesindi4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_promociondesindi4ActionPerformed
        // TODO add your handling code here:
         int fo=Integer.valueOf(this.jtf_iddocto3.getText());
        if(fo>0)
        {
        String texto="",resul="";
        int i=0;
        if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Agregar "+this.jtf_registros2.getText().toUpperCase().trim()+" Articulos?</b></h2></html>")==0)
            {

             String selectin="";
                        for(int ii=0;ii<this.jtable_modelo.getRowCount();ii++)
                            {
                                if (ii>0)
                                    {
                                        selectin+=".";
                                    }
                                selectin+=""+jtable_modelo.getValueAt(ii ,2)+"";
                            }

            texto="select * from x1sieuno_articulo_promociones_insertv5(1,0,'"+selectin+"','0','0','"+this.jtf_iddocto3.getText()+"')";
            System.out.println(texto);
            try
                {
                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                    while (rs.next())
                        {
                        resul=rs.getString(1);
                        }
                }
                catch(Exception e)
                    {
                        System.out.println(e.getMessage());
                    }



            for(int ii=0;ii<this.jtable_modelo_tiendaskit.getRowCount();ii++)
                {
                    texto="select * from x1sieuno_articulo_promociones_insertv5(5,"+this.jtable_modelo_tiendaskit.getValueAt(ii, 0).toString()+",'"+selectin+"','"+this.jtable_modelo_tiendaskit.getValueAt(ii, 5).toString()+"','"+this.jtable_modelo_tiendaskit.getValueAt(ii, 6).toString()+"','"+this.jtf_iddocto3.getText()+"')";
                    System.out.println(texto);
                        try
                        {
                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                        while (rs.next())
                            {
                                resul=rs.getString(1);
                            }
                        } catch(Exception e)
                            {
                                System.out.println(e.getMessage());
                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                            }
                }

            while(jtable_modelo.getRowCount()>0)jtable_modelo.removeRow(0);
            while(jtable_modelo_pro.getRowCount()>0)jtable_modelo_pro.removeRow(0);

            //this.carga_datos_detalle(2, this.jtf_iddocto.getText());
            }//fin del if qu confirmo guardar diferencia
            }
  else
        {
           JOptionPane.showMessageDialog(null,"Primero Guarde su Promocion para agregar Articulos", "Sistema Integral(Promociones) : Error",1);
        }
    }//GEN-LAST:event_jbtn_promociondesindi4ActionPerformed

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        // TODO add your handling code here:
        this.carga_datos_detalle(2, this.jtf_iddocto.getText());
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        // TODO add your handling code here:
          String selectin="",resul="",texto="";
          String arreglo_importa[]=null,arreglo_codigo[]=null;

            if (indexactual == 0)
                {
                        arreglo_importa=this.jta_archivo.getText().split("\n");
                        System.out.println("Estos tiene archivo:"+arreglo_importa.length);
                        for (int i=0;i<arreglo_importa.length;i++)
                            {
                                arreglo_codigo=arreglo_importa[i].split("\t");
                                if (i>0)
                                    {
                                        selectin+=".";
                                    }
                            selectin+=""+arreglo_codigo[0].trim()+"";
                            }
                            texto="select * from x1sieuno_articulo_promociones_insertv5(1,0,'"+selectin+"','0','0','"+this.jtf_iddocto.getText()+"')";
                            /*System.out.println(texto);
                            try
                                {
                                    rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                    while (rs.next())
                                    {
                                        resul=rs.getString(1);
                                    }
                                }
                                catch(Exception e)
                                    {
                                        System.out.println(e.getMessage());
                                    }*/

                            if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Agregar "+this.jtf_registros.getText().toUpperCase().trim()+" Articulos?</b></h2></html>")==0)
                                {
                                    texto="select * from x1sieuno_articulo_promociones_insertv5(2,"+this.jtf_idtienda.getText()+",'"+selectin+"','"+this.jtf_idtiendapro.getText()+"','1','"+this.jtf_iddocto.getText()+"')";
                                        System.out.println(texto);
                                    try
                                        {
                                            rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                        while (rs.next())
                                            {
                                                resul=rs.getString(1);
                                            }
                                        } catch(Exception e)
                                            {
                                                System.out.println(e.getMessage());
                                                JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                            }
                                }
                }
            if (indexactual == 2)
                {
                      arreglo_importa=this.jta_archivo2.getText().split("\n");
                     
                      for (int i=0;i<arreglo_importa.length;i++)
                            {
                                arreglo_codigo=arreglo_importa[i].split("\t");
                                if (i>0)
                                    {
                                        selectin+=".";
                                    }
                            selectin+=""+arreglo_codigo[0].trim()+"";
                            }
                        texto="select * from x1sieuno_articulo_promociones_insertv5(1,0,'"+selectin+"','0','0','"+this.jtf_iddocto3.getText()+"')";
                        System.out.println(texto);
                        try
                            {
                                rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                            while (rs.next())
                                {
                                    resul=rs.getString(1);
                                }
                            }
                            catch(Exception e)
                                {
                                    System.out.println(e.getMessage());
                                }
                            if(JOptionPane.showConfirmDialog(null, "<html><h2><b>Desea Agregar "+this.jtf_registros.getText().toUpperCase().trim()+" Articulos?</b></h2></html>")==0)
                                {
                                texto="select * from x1sieuno_articulo_promociones_insertv5(5,"+this.jtf_idtienda1.getText()+",'"+selectin+"','"+this.jtf_idtiendapro1.getText()+"','1','"+this.jtf_iddocto3.getText()+"')";
                                System.out.println(texto);
                                try
                                    {
                                        rs=x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
                                    while (rs.next())
                                        {
                                            resul=rs.getString(1);
                                        }
                                    } catch(Exception e)
                                    {
                                            System.out.println(e.getMessage());
                                            JOptionPane.showMessageDialog(null," Promocion Incorrecta ", "Sistema Integral(Promociones) : Error",1);
                                    }
                                }
                }
            if (indexactual == 3)
                {
                    arreglo_importa=this.jta_archivo1.getText().split("\n");
                }


    }//GEN-LAST:event_jMenuItem2ActionPerformed
    private void jtb_distribucionalta4MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jlst_clientesdistribucion2MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jtb_distribucionaltaMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jlst_clientesdistribucion1MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jtb_distribucionalta2MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jtb_catalogo_artiexisMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jtb_catalogo_articulosMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jtb_catalogo_articulos1MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jtb_catalogo_articulos2MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jtb_catalogo_articulos5MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new articulos_sie_promociones_alta_sie().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.ButtonGroup buttonGroup3;
    private javax.swing.ButtonGroup buttonGroup4;
    private javax.swing.ButtonGroup buttonGroup5;
    private javax.swing.ButtonGroup buttonGroup6;
    private javax.swing.JTextField idfila;
    private javax.swing.JTextField idfila1;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane13;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JScrollPane jScrollPane15;
    private javax.swing.JScrollPane jScrollPane16;
    private javax.swing.JScrollPane jScrollPane17;
    private javax.swing.JScrollPane jScrollPane18;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JButton jbtn_agregart;
    private javax.swing.JButton jbtn_agregart1;
    private javax.swing.JButton jbtn_agregart2;
    private javax.swing.JButton jbtn_buscar;
    private javax.swing.JButton jbtn_buscar1;
    private javax.swing.JButton jbtn_buscar2;
    private javax.swing.JButton jbtn_eliminareb;
    private javax.swing.JButton jbtn_eliminareball;
    private javax.swing.JButton jbtn_guardasolicitud;
    private javax.swing.JButton jbtn_guardasolicitud1;
    private javax.swing.JButton jbtn_guardasolicitud2;
    private javax.swing.JButton jbtn_guardasolicitud3;
    private javax.swing.JButton jbtn_prereb_verifica;
    private javax.swing.JButton jbtn_promociondesindi;
    private javax.swing.JButton jbtn_promociondesindi1;
    private javax.swing.JButton jbtn_promociondesindi3;
    private javax.swing.JButton jbtn_promociondesindi4;
    private javax.swing.JButton jbtn_promocionindielimi;
    private javax.swing.JButton jbtn_promocionindielimi1;
    private javax.swing.JButton jbtn_promocionindielimi2;
    private javax.swing.JButton jbtn_promocionindielimi3;
    private javax.swing.JCheckBox jcbx_confirma;
    private javax.swing.JCheckBox jcbx_confirma1;
    private javax.swing.JCheckBox jcbx_confirma2;
    private javax.swing.JCheckBox jcbx_historialne1;
    private javax.swing.JCheckBox jcbx_historialne2;
    private javax.swing.JCheckBox jcbx_historialne3;
    private javax.swing.JCheckBox jcbx_historialne4;
    private javax.swing.JCheckBox jcbx_historialne5;
    private javax.swing.JCheckBox jcbx_historialne6;
    private javax.swing.JCheckBox jcbx_historialne7;
    private javax.swing.JCheckBox jcbx_historialne8;
    private com.toedter.calendar.JDateChooser jdc_rangofinal;
    private com.toedter.calendar.JDateChooser jdc_rangofinal1;
    private com.toedter.calendar.JDateChooser jdc_rangofinal2;
    private com.toedter.calendar.JDateChooser jdc_rangoini;
    private com.toedter.calendar.JDateChooser jdc_rangoini1;
    private com.toedter.calendar.JDateChooser jdc_rangoini2;
    private com.toedter.calendar.JDateChooser jdc_rangoini3;
    private javax.swing.JList jlst_clientesdistribucion;
    private javax.swing.JList jlst_clientesdistribucion1;
    private javax.swing.JList jlst_clientesdistribucion2;
    private javax.swing.JMenuItem jmni_escape;
    private javax.swing.JMenuItem jmni_export;
    private javax.swing.JMenuItem jmni_importacsv;
    private javax.swing.JMenuItem jmni_importaid;
    private javax.swing.JMenuItem jmni_importarclave;
    private javax.swing.JMenuItem jmni_salir;
    private javax.swing.JRadioButton jrb_bclave;
    private javax.swing.JRadioButton jrb_bclave1;
    private javax.swing.JRadioButton jrb_bclave2;
    private javax.swing.JRadioButton jrb_bclave3;
    private javax.swing.JRadioButton jrb_bclave4;
    private javax.swing.JRadioButton jrb_bclave5;
    private javax.swing.JRadioButton jrb_bdescrip;
    private javax.swing.JRadioButton jrb_bdescrip1;
    private javax.swing.JRadioButton jrb_bdescrip2;
    private javax.swing.JRadioButton jrb_bdessubfam;
    private javax.swing.JRadioButton jrb_bdessubfam1;
    private javax.swing.JRadioButton jrb_bdessubfam2;
    private javax.swing.JRadioButton jrb_bidfam;
    private javax.swing.JRadioButton jrb_bidfam1;
    private javax.swing.JRadioButton jrb_bidfam2;
    private javax.swing.JRadioButton jrb_bidsubfam;
    private javax.swing.JRadioButton jrb_bidsubfam1;
    private javax.swing.JRadioButton jrb_bidsubfam2;
    private javax.swing.JRadioButton jrb_bitem;
    private javax.swing.JRadioButton jrb_bitem1;
    private javax.swing.JRadioButton jrb_bitem2;
    private javax.swing.JRadioButton jrb_obaniway;
    private javax.swing.JRadioButton jrb_obaniway1;
    private javax.swing.JRadioButton jrb_obaniway2;
    private javax.swing.JRadioButton jrb_obcomienza;
    private javax.swing.JRadioButton jrb_obcomienza1;
    private javax.swing.JRadioButton jrb_obcomienza2;
    private javax.swing.JRadioButton jrb_obexacto;
    private javax.swing.JRadioButton jrb_obexacto1;
    private javax.swing.JRadioButton jrb_obexacto2;
    private javax.swing.JRadioButton jrbt_rebfilfam;
    private javax.swing.JRadioButton jrbt_rebfilsub;
    private javax.swing.JTextArea jta_archivo;
    private javax.swing.JTextArea jta_archivo1;
    private javax.swing.JTextArea jta_archivo2;
    private javax.swing.JTable jtb_catalogo_articulos;
    private javax.swing.JTable jtb_catalogo_articulos1;
    private javax.swing.JTable jtb_catalogo_articulos2;
    private javax.swing.JTable jtb_catalogo_articulos3;
    private javax.swing.JTable jtb_catalogo_articulos4;
    private javax.swing.JTable jtb_catalogo_articulos5;
    private javax.swing.JTable jtb_catalogo_artiexis;
    private javax.swing.JTable jtb_distribucionalta;
    private javax.swing.JTable jtb_distribucionalta1;
    private javax.swing.JTable jtb_distribucionalta2;
    private javax.swing.JTable jtb_distribucionalta3;
    private javax.swing.JTable jtb_distribucionalta4;
    private javax.swing.JTextField jtf_busqueda;
    private javax.swing.JTextField jtf_busqueda1;
    private javax.swing.JTextField jtf_busqueda2;
    private javax.swing.JTextField jtf_busqueda3;
    private javax.swing.JTextField jtf_describe;
    private javax.swing.JTextField jtf_describe1;
    private javax.swing.JTextField jtf_describe2;
    private javax.swing.JTextField jtf_describe3;
    private javax.swing.JTextField jtf_iddocto;
    private javax.swing.JTextField jtf_iddocto1;
    private javax.swing.JTextField jtf_iddocto2;
    private javax.swing.JTextField jtf_iddocto3;
    private javax.swing.JTextField jtf_idproductopromo;
    private javax.swing.JTextField jtf_idproductopromo1;
    private javax.swing.JTextField jtf_idtienda;
    private javax.swing.JTextField jtf_idtienda1;
    private javax.swing.JTextField jtf_idtiendapro;
    private javax.swing.JTextField jtf_idtiendapro1;
    private javax.swing.JTextField jtf_idtiendapro2;
    private javax.swing.JTextField jtf_observaindica;
    private javax.swing.JTextField jtf_observaindica1;
    private javax.swing.JTextField jtf_observaindica2;
    private javax.swing.JTextField jtf_observaindica3;
    private javax.swing.JTextField jtf_promocan;
    private javax.swing.JTextField jtf_promocan1;
    private javax.swing.JTextField jtf_promocan2;
    private javax.swing.JTextField jtf_promokitpzgrat;
    private javax.swing.JTextField jtf_promokitpzpag;
    private javax.swing.JTextField jtf_rebajacodigo;
    private javax.swing.JTextField jtf_rebajadescrip;
    private javax.swing.JTextField jtf_rebajaidt;
    private javax.swing.JTextField jtf_rebajaidt1;
    private javax.swing.JTextField jtf_rebaprecio;
    private javax.swing.JTextField jtf_rebidfila;
    private javax.swing.JTextField jtf_rebidfila1;
    private javax.swing.JTextField jtf_rebidtiendaactual;
    private javax.swing.JTextField jtf_registros;
    private javax.swing.JTextField jtf_registros1;
    private javax.swing.JTextField jtf_registros2;
    private javax.swing.JTextField jtf_registros3;
    private javax.swing.JTextField jtf_tipodocto;
    private javax.swing.JTextField jtf_tipodocto1;
    // End of variables declaration//GEN-END:variables

}
